Answers for "how to change a table name using entity framework core fluent api"

C#
1

renaming table name entity framework code first fluent api

protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
  //Changing Database table name to Metadata
  modelBuilder.Entity<Metadata>().ToTable("Metadata");
}
Posted by: Guest on September-18-2021

Code answers related to "how to change a table name using entity framework core fluent api"

C# Answers by Framework

Browse Popular Code Answers by Language