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