mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
db.Fastest null bug
This commit is contained in:
@@ -92,7 +92,7 @@ namespace SqlSugar
|
||||
private object ValueConverter(EntityColumnInfo columnInfo, object value)
|
||||
{
|
||||
if (value == null)
|
||||
return value;
|
||||
return DBNull.Value;
|
||||
if (value is DateTime && (DateTime)value == DateTime.MinValue)
|
||||
{
|
||||
value = Convert.ToDateTime("1900-01-01");
|
||||
|
||||
Reference in New Issue
Block a user