How turn off pluralize table creation for Entity Framework 5?

后端 未结 3 1665
有刺的猬
有刺的猬 2020-12-01 12:23

I am trying to use Entity Framework 5. The first problem was that EF creats tables automatically. I tried to fix it by including dbModelBuilder.Conventions.Remove<

3条回答
  •  一生所求
    2020-12-01 12:43

    You can write this code in OnModelCreating method:

    modelBuilder.Conventions.Remove();
    

提交回复
热议问题