diff --git a/aspnetcore/tutorials/web-api-vsc.md b/aspnetcore/tutorials/web-api-vsc.md index bd515ee454..6f2a62ec98 100644 --- a/aspnetcore/tutorials/web-api-vsc.md +++ b/aspnetcore/tutorials/web-api-vsc.md @@ -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.