mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 20:27:56 +08:00
-
This commit is contained in:
parent
c10771835c
commit
26e7bafa4b
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user