From fb416074872c986fc7710e547fd637437aecd36e Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Tue, 5 Sep 2017 14:51:33 -0500 Subject: [PATCH] Add missing comma --- aspnetcore/data/ef-mvc/crud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/data/ef-mvc/crud.md b/aspnetcore/data/ef-mvc/crud.md index 21a58aaed189..b8de284488c8 100644 --- a/aspnetcore/data/ef-mvc/crud.md +++ b/aspnetcore/data/ef-mvc/crud.md @@ -269,7 +269,7 @@ Click **Delete**. The Index page is displayed without the deleted student. (You' To free up the resources that a database connection holds, the context instance must be disposed as soon as possible when you are done with it. The ASP.NET Core built-in [dependency injection](../../fundamentals/dependency-injection.md) takes care of that task for you. -In *Startup.cs* you call the [AddDbContext extension method](https://github.com/aspnet/EntityFramework/blob/03bcb5122e3f577a84498545fcf130ba79a3d987/src/Microsoft.EntityFrameworkCore/EntityFrameworkServiceCollectionExtensions.cs) to provision the `DbContext` class in the ASP.NET DI container. That method sets the service lifetime to `Scoped` by default. `Scoped` means the context object lifetime coincides with the web request life time, and the `Dispose` method will be called automatically at the end of the web request. +In *Startup.cs*, you call the [AddDbContext extension method](https://github.com/aspnet/EntityFramework/blob/03bcb5122e3f577a84498545fcf130ba79a3d987/src/Microsoft.EntityFrameworkCore/EntityFrameworkServiceCollectionExtensions.cs) to provision the `DbContext` class in the ASP.NET DI container. That method sets the service lifetime to `Scoped` by default. `Scoped` means the context object lifetime coincides with the web request life time, and the `Dispose` method will be called automatically at the end of the web request. ## Handling Transactions