Sunday, April 28, 2019

MVC Remove Plural Table Name With DbContext in EF6.0

1. MVC Remove Plural Table Name With DbContext in EF6.0

protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
    modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
}

No comments:

Post a Comment

Raw Insert query in EF8 or Entity Framwork 8

          public async Task<object> InsertRack(Rack RackInsert)         {             try             {                 sql = " i...