mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
-
This commit is contained in:
parent
5db88df5c9
commit
9295baf0d8
@ -196,7 +196,7 @@ namespace SqlSugar
|
||||
}
|
||||
private object FormatValue(object value,EntityColumnInfo entityColumnInfo=null)
|
||||
{
|
||||
if (entityColumnInfo != null && value == null&&this.Context.CurrentConnectionConfig.DbType==DbType.SqlServer)
|
||||
if (entityColumnInfo != null&&entityColumnInfo.UnderType==UtilConstants.DateType && value == null&&this.Context.CurrentConnectionConfig.DbType==DbType.SqlServer)
|
||||
{
|
||||
return $" CAST( NULL AS DATETIME) ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user