I prefer to use singular nouns when naming my database tables. However, in EF code, the generated tables are always plural. My DbSets are pluralized, and I believe that EF generates names, but I do not want to create these names, because I think it is more rational to use them in the plural. I also tried to override the setting, but to no avail.
Any ideas? Here is my code and thanks.
MyObjectContext.cs
public class MyObjectContext : DbContext, IDbContext { public MyObjectContext(string connString) : base(connString) { } public DbSet<Product> Products {get;set;} public DbSet<Category> Categories {get;set;}
entity-framework ef-code-first
trevorc Jan 25 2018-11-17T00: 00Z
source share