mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Mysql time to datetime bug
This commit is contained in:
@@ -251,7 +251,7 @@ namespace SqlSugar
|
||||
CheckType(bind.DateThrow, bindProperyTypeName, validPropertyName, propertyName);
|
||||
if (bindProperyTypeName == "datetime")
|
||||
method = isNullableType ? getConvertDateTime : getDateTime;
|
||||
if (bindProperyTypeName == "datetime"&&dbTypeName == "time")
|
||||
if (bindProperyTypeName == "datetime"&&dbTypeName.ToLower() == "time")
|
||||
method = isNullableType ? getConvertTime : getTime;
|
||||
break;
|
||||
case CSharpDataType.@decimal:
|
||||
|
Reference in New Issue
Block a user