From d534923caf603ae8c3ebb9971a206eef431ac5b5 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Thu, 24 Oct 2024 17:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=8B=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TransactionTypeDbContextModelCreatingExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/TransactionTypes/TransactionTypeDbContextModelCreatingExtensions.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/TransactionTypes/TransactionTypeDbContextModelCreatingExtensions.cs index 11339fc49..198e1a8b7 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/TransactionTypes/TransactionTypeDbContextModelCreatingExtensions.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/TransactionTypes/TransactionTypeDbContextModelCreatingExtensions.cs @@ -19,11 +19,11 @@ public static class TransactionTypeDbContextModelCreatingExtensions b.Property(p => p.TransType).HasMaxLength(SfsPropertyConst.NameLength).HasConversion(); b.Property(p => p.TransSubType).HasMaxLength(SfsPropertyConst.NameLength).HasConversion(); b.Property(x => x.Description).IsRequired().HasMaxLength(SfsPropertyConst.DescLength); - b.Property(x => x.OutLocationTypes).HasMaxLength(SfsPropertyConst.NameLength); - b.Property(x => x.InLocationTypes).HasMaxLength(SfsPropertyConst.NameLength); + b.Property(x => x.OutLocationTypes).HasMaxLength(SfsPropertyConst.DescLength); + b.Property(x => x.InLocationTypes).HasMaxLength(SfsPropertyConst.DescLength); b.Property(x => x.ItemStatuses).HasMaxLength(SfsPropertyConst.NameLength); - b.Property(x => x.OutInventoryStatuses).HasMaxLength(SfsPropertyConst.NameLength); - b.Property(x => x.InInventoryStatuses).HasMaxLength(SfsPropertyConst.NameLength); + b.Property(x => x.OutInventoryStatuses).HasMaxLength(SfsPropertyConst.DescLength); + b.Property(x => x.InInventoryStatuses).HasMaxLength(SfsPropertyConst.DescLength); b.Property(x => x.ItemTypes).HasMaxLength(SfsPropertyConst.NameLength); b.HasIndex(x => new { x.TransType, x.TransSubType }).IsUnique();