From 6d97b5a3784c86ac03b7776288b710a36512f94f Mon Sep 17 00:00:00 2001
From: 44673626 <44673626@qq.com>
Date: Wed, 5 Jan 2022 13:37:33 +0800
Subject: [PATCH] 1
---
...AccountDbContextModelCreatingExtensions.cs | 48 -------------------
1 file changed, 48 deletions(-)
diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
index 914df7e3..c8bae2fb 100644
--- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
+++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
@@ -340,54 +340,6 @@ namespace Win.Sfs.SettleAccount
#region PG-派格
- ///
- /// 一汽轿车平台验收结算明细-导入
- ///
- ///
- ///
- private static void ConfigureHQCar(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
- {
-
- builder.Entity(b =>
- {
-
- b.ToTable($"{options.TablePrefix}_HQ_Car_Platform", options.Schema);
-
- b.ConfigureByConvention();
- b.Property(x => x.HQCarKanBan).HasMaxLength(150);//看板号(一汽轿车没有看板号)
- b.Property(x => x.MaterialVoucherNo).HasMaxLength(150);
- b.Property(x => x.Factory).HasMaxLength(50);
- b.Property(x => x.MaterialCode).IsRequired().HasMaxLength(150);
- b.Property(x => x.ExternalKanbanNumber).HasMaxLength(50);
- b.Property(x => x.KanbanNumber).HasMaxLength(150);//看板编号
- b.Property(x => x.Period).HasMaxLength(50);
- b.Property(x => x.Year).HasMaxLength(50);
- b.Property(x => x.Version).HasMaxLength(50);
- b.Property(x => x.Supplier).HasMaxLength(50);
- b.Property(x => x.StorageLocation).HasMaxLength(50);
- b.Property(x => x.StorageLocationDesc).HasMaxLength(150);
- //创建组合索引
- b.HasIndex(x => new { x.Version, x.KanbanNumber, x.MaterialCode }).IsUnique().HasFilter(IsDeletedFilter);
-
- });
- }
-
- private static void ConfigureHQCarVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
- {
-
- builder.Entity(b =>
- {
- b.ToTable($"{options.TablePrefix}_HQ_Car_PlatformVersion", options.Schema);
- b.ConfigureByConvention();
- b.Property(x => x.Year).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
- b.Property(x => x.Period).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
- b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
- b.Property(x => x.CustomerCode).HasMaxLength(CommonConsts.MaxCodeLength);
- b.HasIndex(x => new { x.Version }).IsUnique().HasFilter(IsDeletedFilter);
- });
-
- }
-
///
/// 红旗工厂F平台验收结算明细-导入
///