diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Asbitems/AsbitemDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Asbitems/AsbitemDbMapping.cs index ea4306c..1750ebb 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Asbitems/AsbitemDbMapping.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Asbitems/AsbitemDbMapping.cs @@ -38,9 +38,9 @@ namespace Shentun.Peis.DbMapping entity.Property(t => t.BarcodeMode).HasComment("条码模式").IsRequired().HasDefaultValueSql("'0'"); entity.Property(t => t.IsWebAppoint).HasComment("是否支持网上预约").IsRequired().HasDefaultValueSql("'Y'"); entity.Property(t => t.ForPregnantFlag).HasComment("备怀孕期间禁止检查").IsRequired().HasDefaultValueSql("'A'"); - entity.Property(t => t.IsCriticalValueFunction).HasComment("是否启用危急值函数").IsRequired().HasDefaultValue("'N'"); + entity.Property(t => t.IsCriticalValueFunction).HasComment("是否启用危急值函数").IsRequired().HasDefaultValueSql("'N'"); entity.Property(t => t.CriticalValueFunction).HasComment("危急值函数"); - entity.Property(t => t.IsFollowUpFunction).HasComment("是否启用随访函数").IsRequired().HasDefaultValue("'N'"); + entity.Property(t => t.IsFollowUpFunction).HasComment("是否启用随访函数").IsRequired().HasDefaultValueSql("'N'"); entity.Property(t => t.FollowUpFunction).HasComment("随访函数"); entity.Property(e => e.Id) .IsFixedLength() diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Items/ItemDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Items/ItemDbMapping.cs index d4a1288..c8458fa 100644 --- a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Items/ItemDbMapping.cs +++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/Items/ItemDbMapping.cs @@ -37,9 +37,9 @@ namespace Shentun.Peis.DbMapping entity.Property(t => t.IsActive).HasComment("启用").IsRequired().HasDefaultValueSql("'Y'"); entity.Property(t => t.LineModeFlag).HasComment("项目结果行模式").HasDefaultValue('2').IsRequired(); - entity.Property(t => t.IsCriticalValueFunction).HasComment("是否启用危急值函数").IsRequired().HasDefaultValue("'N'"); + entity.Property(t => t.IsCriticalValueFunction).HasComment("是否启用危急值函数").IsRequired().HasDefaultValueSql("'N'"); entity.Property(t => t.CriticalValueFunction).HasComment("危急值函数"); - entity.Property(t => t.IsFollowUpFunction).HasComment("是否启用随访函数").IsRequired().HasDefaultValue("'N'"); + entity.Property(t => t.IsFollowUpFunction).HasComment("是否启用随访函数").IsRequired().HasDefaultValueSql("'N'"); entity.Property(t => t.FollowUpFunction).HasComment("随访函数"); entity.Property(e => e.Id).IsFixedLength();