Update web-api-vsc.md (#3627)
parent
e9fa4e1a2a
commit
8c254e1e20
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue