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

Linq Expression syntax for where condtion in linq

(Expression<Func<T, bool>> filter)