mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +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)
|
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) ";
|
return $" CAST( NULL AS DATETIME) ";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user