tangdi 3 лет назад
Родитель
Сommit
28919cc3d9

+ 18 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BusinessBangDbContext.cs

@@ -1,3 +1,4 @@
+using Bussiness.Model.Bang;
 using Bussiness.Model.MES.IC;
 using Bussiness.Model.Production;
 using Bussiness.Model.ProductionProcess;
@@ -23,6 +24,23 @@ namespace Business.EntityFrameworkCore
     [ConnectionStringName("DOPBang")]
     public class BusinessBangDbContext : AbpDbContext<BusinessBangDbContext>
     {        //Code generation...
+
+        #region
+        public DbSet<b_bom_child_examine> b_bom_child_examine { get; set; }
+
+        public DbSet<b_examine_result> b_examine_result { get; set; }
+
+        public DbSet<b_mo_occupy> b_mo_occupy { get; set; }
+
+        public DbSet<b_mo_order> b_mo_order { get; set; }
+
+        public DbSet<b_ooder> b_ooder { get; set; }
+
+        public DbSet<b_purchase> b_purchase { get; set; }
+
+        public DbSet<b_purchase_occupy> b_purchase_occupy { get; set; }
+        #endregion
+
         public BusinessBangDbContext(DbContextOptions<BusinessBangDbContext> options)
             : base(options)
         {

+ 36 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContextModelCreatingExtensions.cs

@@ -1,4 +1,5 @@
 using Business.Model;
+using Bussiness.Model.Bang;
 using Bussiness.Model.Ext;
 using Bussiness.Model.MES.IC;
 using Bussiness.Model.Production;
@@ -590,6 +591,41 @@ namespace Business.EntityFrameworkCore
         {
             //TODO:这样太麻烦了,有时间研究一下批量
             Check.NotNull(builder, nameof(builder));
+            builder.Entity<b_bom_child_examine>(b =>
+            {
+                b.ToTable("b_bom_child_examine");
+                b.ConfigureByConvention();
+            });
+            builder.Entity<b_examine_result>(b =>
+            {
+                b.ToTable("b_examine_result");
+                b.ConfigureByConvention();
+            });
+            builder.Entity<b_mo_occupy>(b =>
+            {
+                b.ToTable("b_mo_occupy");
+                b.ConfigureByConvention();
+            });
+            builder.Entity<b_mo_order>(b =>
+            {
+                b.ToTable("b_mo_order");
+                b.ConfigureByConvention();
+            });
+            builder.Entity<b_ooder>(b =>
+            {
+                b.ToTable("b_ooder");
+                b.ConfigureByConvention();
+            });
+            builder.Entity<b_purchase>(b =>
+            {
+                b.ToTable("b_purchase");
+                b.ConfigureByConvention();
+            });
+            builder.Entity<b_purchase_occupy>(b =>
+            {
+                b.ToTable("b_purchase_occupy");
+                b.ConfigureByConvention();
+            });
         }
     }
 }