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();