Published
- 1 min read
renaming table name entity framework code first fluent api
The solution for this is noted below
renaming table name entity framework code first fluent api
Solution
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
//Changing Database table name to Metadata
modelBuilder.Entity<Metadata>().ToTable("Metadata");
}
Try other methods by searching on the site. That is if this doesn’t work