/EntityFrameworkCoreSamples

Sample code for Entity Framework Core Database First

Primary LanguageC#MIT LicenseMIT

Sample code for Entity Framework Core

  • DatabaseFirstSample Initialize database tables through existing SQL script. Generate entities through database table.
  • CodeFirstSample Wirte C# code model class first. Wirte xxDbContext object inherit from DbContext. Generate database and tables through C# entities.
  • SwitchDatabaseSample Base on CodeFirstSample. Support both SQLSever and SQLite.