How turn off pluralize table creation for Entity Framework 5?

后端 未结 3 1664
有刺的猬
有刺的猬 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:50

    If you don't want EF to create tables and manage consistency between you model and database just use this at the startup of your application:

    Database.SetInitializer(null);
    

提交回复
热议问题