How do I singularize my tables in EF Code First?

后端 未结 3 1729
一向
一向 2020-11-29 02:36

I prefer using singular nouns when naming my database tables. In EF code first however, the generated tables always are plural. My DbSets are pluralized which I believe is

3条回答
  •  执念已碎
    2020-11-29 03:02

    The location of the definition of PluralizingTableNameConvention has moved to:

    using System.Data.Entity.ModelConfiguration.Conventions;

提交回复
热议问题