This commit is contained in:
sunkaixuan 2017-04-23 15:00:49 +08:00
parent c10771835c
commit 26e7bafa4b

View File

@ -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));
}
}
}