From 46988d16570cb7146b572af89637a8a2aa5a6e5c Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Fri, 26 Jul 2024 18:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B1=E8=AD=A6=E5=80=BC=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DbMapping/Asbitems/AsbitemDbMapping.cs | 4 ++-- .../DbMapping/Items/ItemDbMapping.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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();