|
@@ -25,25 +25,25 @@ namespace Business.EntityFrameworkCore
|
|
|
{
|
|
{
|
|
|
//TODO:这样太麻烦了,有时间研究一下批量
|
|
//TODO:这样太麻烦了,有时间研究一下批量
|
|
|
Check.NotNull(builder, nameof(builder));
|
|
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 =>
|
|
builder.Entity<ic_bom>(b =>
|
|
|
{
|
|
{
|