表名生成规则3中方式
public virtual DbSet<EntityDesign.AppraiseLevel> T_AppraiseLevel { get; set; }
[Table("T_Menu")] public class Menu : FullAuditedEntity<Guid>, IMustHaveTenant
/// <summary> /// 重写OnModelCreating方法,配置映射 /// </summary> /// <param name="modelBuilder"></param> protected override void OnModelCreating(ModelBuilder modelBuilder) { // 配置表名映射 modelBuilder.Entity<Blog>().ToTable("Blog"); base.OnModelCreating(modelBuilder); }