Fixed typo (#3424)

* Fixed typo

* Update register_dbContext.md
pull/3430/head
Ganesan Arunachalam 2017-05-31 00:47:19 +05:30 committed by Rick Anderson
parent 285cd142e1
commit 520e0013bb
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
## Register the database context ## Register the database context
n order to inject the database context into the controller, we need to register it with the [dependency injection](xref:fundamentals/dependency-injection) container. Register the database context with the service container using the built-in support for [dependency injection](xref:fundamentals/dependency-injection). Replace the contents of the *Startup.cs* file with the following: In order to inject the database context into the controller, we need to register it with the [dependency injection](xref:fundamentals/dependency-injection) container. Register the database context with the service container using the built-in support for [dependency injection](xref:fundamentals/dependency-injection). Replace the contents of the *Startup.cs* file with the following:
[!code-csharp[Main](../../tutorials/first-web-api/sample/TodoApi/Startup.cs?highlight=2,4,12)] [!code-csharp[Main](../../tutorials/first-web-api/sample/TodoApi/Startup.cs?highlight=2,4,12)]