diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpExpressionContext.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpExpressionContext.cs index 15304cf3d..f0eb056f3 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpExpressionContext.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpExpressionContext.cs @@ -182,9 +182,9 @@ namespace SqlSugar } public override string DateValue(MethodCallExpressionModel model) { - if (IsSqlServerModel(model)) + if (IsSqlServerModel(model)) { - return base.DateValue(model); + return new SqlServerMethod().DateValue(model); } var parameter = model.Args[0]; var parameter2 = model.Args[1];