From 520e0013bb280f9bb3d6c3931f8da3af9dbdd0c1 Mon Sep 17 00:00:00 2001 From: Ganesan Arunachalam Date: Wed, 31 May 2017 00:47:19 +0530 Subject: [PATCH] Fixed typo (#3424) * Fixed typo * Update register_dbContext.md --- aspnetcore/includes/webApi/register_dbContext.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/includes/webApi/register_dbContext.md b/aspnetcore/includes/webApi/register_dbContext.md index 2e71df818a..05635c1fd8 100644 --- a/aspnetcore/includes/webApi/register_dbContext.md +++ b/aspnetcore/includes/webApi/register_dbContext.md @@ -1,6 +1,6 @@ ## 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)]