db-first

How to know project is code-first or database-first?

十年热恋 提交于 2020-08-27 07:38:40
问题 In an existing project, how do I know if it's code-first or database-first? Project has this lines of code: public class TestDBContext : DbContext { public DbSet<Player> Players { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove<PluralizingTableNameConvention>(); } } And project has no .edmx file. If any other details need I will share. EDIT: Player.cs class public class Player { public int PlayerID { get; set; } public string