Browse Source

枚举增加扩展属性

dev_DY_CC
周红军 1 year ago
parent
commit
44a393685b
  1. 3
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/PositionCode/PositionCodeDbContextModelCreatingExtensions.cs

3
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/PositionCode/PositionCodeDbContextModelCreatingExtensions.cs

@ -24,6 +24,9 @@ public static class PositionCodeDbContextModelCreatingExtensions
b.Property(q => q.LocationCode).HasMaxLength(SfsPropertyConst.CodeLength); b.Property(q => q.LocationCode).HasMaxLength(SfsPropertyConst.CodeLength);
b.Property(q => q.PartCode).HasMaxLength(SfsPropertyConst.CodeLength); b.Property(q => q.PartCode).HasMaxLength(SfsPropertyConst.CodeLength);
b.Property(q => q.PartName).HasMaxLength(SfsPropertyConst.NameLength);
b.Property(q => q.LocationName).HasMaxLength(SfsPropertyConst.NameLength);
b.Property(q => q.Type).HasMaxLength(SfsPropertyConst.NameLength).HasConversion<string>();
//Relations //Relations
//None //None

Loading…
Cancel
Save