Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
26e7bafa4b
  1. 4
      SqlSugar/Abstract/DbProvider/DbBindProvider/IDataReaderEntityBuilder.cs

4
SqlSugar/Abstract/DbProvider/DbBindProvider/IDataReaderEntityBuilder.cs

@ -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…
Cancel
Save