|
|
@@ -25,36 +25,29 @@ namespace Business.EntityFrameworkCore
|
|
|
{
|
|
|
//TODO:这样太麻烦了,有时间研究一下批量
|
|
|
Check.NotNull(builder, nameof(builder));
|
|
|
- //builder.Entity<Book>(b =>
|
|
|
- //{
|
|
|
- // b.ToTable("Book");
|
|
|
+ builder.Entity<Book>(b =>
|
|
|
+ {
|
|
|
+ b.ToTable("Book");
|
|
|
|
|
|
- // b.ConfigureByConvention();
|
|
|
+ b.ConfigureByConvention();
|
|
|
|
|
|
- // b.Property(x => x.Name).IsRequired();
|
|
|
+ b.Property(x => x.Name).IsRequired();
|
|
|
|
|
|
|
|
|
- //});
|
|
|
+ });
|
|
|
|
|
|
- //builder.Entity<PrintTemplate>(b =>
|
|
|
- //{
|
|
|
- // b.ToTable("base_print_template");
|
|
|
+ builder.Entity<PrintTemplate>(b =>
|
|
|
+ {
|
|
|
+ b.ToTable("base_print_template");
|
|
|
|
|
|
- // b.ConfigureByConvention();
|
|
|
+ b.ConfigureByConvention();
|
|
|
|
|
|
- // b.Property(x => x.Name).IsRequired();
|
|
|
- //});
|
|
|
+ b.Property(x => x.Name).IsRequired();
|
|
|
+ });
|
|
|
|
|
|
builder.Entity<ic_bom>(b =>
|
|
|
{
|
|
|
b.ToTable("ic_bom").HasComment("物料BOM");
|
|
|
- b.Property(x => x.Id).HasComment("主键");
|
|
|
- b.Property(x => x.bom_number).HasComment("bom编号");
|
|
|
- b.Property(x => x.bom_num).HasComment("bom序号");
|
|
|
- b.Property(x => x.fse_status).HasComment("使用状态");
|
|
|
- b.Property(x => x.begin_day).HasComment("生效日期");
|
|
|
- b.Property(x => x.end_day).HasComment("失效日期");
|
|
|
- b.Property(x => x.tech_id).HasComment("工艺主键");
|
|
|
b.ConfigureByConvention();
|
|
|
});
|
|
|
|