Update adding-model4.md (#4785)
parent
d24b96881b
commit
4c0a4ab3a3
|
@ -1,4 +1,4 @@
|
|||
The highlighted code above shows the movie database context being added to the [Dependency Injection](xref:fundamentals/dependency-injection) container. The line following `services.AddDbContext<MvcMovieContext>(options =>` is not shown (see your code). It specifies the database to use and the connection string. `=>` is a [lambda operator](https://docs.microsoft.com/dotnet/articles/csharp/language-reference/operators/lambda-operator).
|
||||
The highlighted code above shows the movie database context being added to the [Dependency Injection](xref:fundamentals/dependency-injection) container (In the *Startup.cs* file). `services.AddDbContext<MvcMovieContext>(options =>` specifies the database to use and the connection string. `=>` is a [lambda operator](https://docs.microsoft.com/dotnet/articles/csharp/language-reference/operators/lambda-operator).
|
||||
|
||||
Open the *Controllers/MoviesController.cs* file and examine the constructor:
|
||||
|
||||
|
|
Loading…
Reference in New Issue