Mysql time to datetime bug

This commit is contained in:
sunkaixuan 2019-03-28 22:02:27 +08:00
parent 023d9e3049
commit 249da2b379

View File

@ -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: