Browse Source

修改事务类型长度

dev_DY_CC
郑勃旭 6 months ago
parent
commit
d534923caf
  1. 8
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/TransactionTypes/TransactionTypeDbContextModelCreatingExtensions.cs

8
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<string>();
b.Property(p => p.TransSubType).HasMaxLength(SfsPropertyConst.NameLength).HasConversion<string>();
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();

Loading…
Cancel
Save