Update web-api-vsc.md (#3627)

pull/3645/merge
Rick Anderson 2017-07-06 08:58:17 -06:00 committed by GitHub
parent e9fa4e1a2a
commit 8c254e1e20
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ Add a `TodoItem` class with the following code:
[!code-csharp[Main](first-web-api/sample/TodoApi/Models/TodoItem.cs)]
The database generates the `Id` when a `TodoItem` is created.
## Create the database context
The *database context* is the main class that coordinates Entity Framework functionality for a given data model. You create this class by deriving from the `Microsoft.EntityFrameworkCore.DbContext` class.