mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 09:44:39 +08:00
-
This commit is contained in:
@@ -286,12 +286,12 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
}
|
||||
private void CheckType(List<string> errorTypes, string objType, string dbType, string field)
|
||||
private void CheckType(List<string> errorTypes, string objType, string transformedPropertyName, string propertyName)
|
||||
{
|
||||
var isAny = errorTypes.Contains(objType);
|
||||
if (isAny)
|
||||
{
|
||||
throw new SqlSugarException(string.Format("{0} can't convert {1} to {2}", field, dbType, objType));
|
||||
throw new SqlSugarException(string.Format("{0} can't convert {1} to {2}", propertyName, transformedPropertyName, objType));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user