• Skip to primary navigation
  • Skip to main content

Josh Withee

  • Home
  • Blog
  • Contact
  • Show Search
Hide Search

DbContext

ASP.NET Core 2.x – Add a DbContext

Josh Withee · March 21, 2019 · Leave a Comment

Index: Example entity modelInstall NuGet packagesCreate context classUpdate Startup.csExample connection stringAdd-MigrationUpdate-DatabaseSeed data Example entity model Read about the [Key] annotation and others here Install NuGet packages (the Identity packages are only necessary if …

[Read more...] about ASP.NET Core 2.x – Add a DbContext

Copyright © 2023