Entity Framework which is created Default Table Name when create Data context.
You need to remove Default Plural Table Name.
for that add one line code in auto generated mathod name "OnModelCreating"
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
//throw new UnintentionalCodeFirstException();
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
}
I hope this solution will help you to solve your problem. if you have any query then post comment or leave your feedback or you can mail me at mehulpatelk152@gmail.com.
No comments:
Post a Comment