📜  重命名表名实体框架代码先fluent api - C#代码示例

📅  最后修改于: 2022-03-11 14:48:52.107000             🧑  作者: Mango

代码示例1
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
  //Changing Database table name to Metadata
  modelBuilder.Entity().ToTable("Metadata");
}