Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
247dade237
  1. 10
      SqlSugar/Abstract/DbProvider/DbBindProvider/DbBindAccessory.cs

10
SqlSugar/Abstract/DbProvider/DbBindProvider/DbBindAccessory.cs

@ -7,10 +7,10 @@ namespace SqlSugar
{
public partial class DbBindAccessory
{
protected List<T> GetEntityList<T>(Type type,SqlSugarClient context, IDataReader dataReader,string fields)
protected List<T> GetEntityList<T>(Type type, SqlSugarClient context, IDataReader dataReader, string fields)
{
var cacheManager = CacheManager<IDataReaderEntityBuilder<T>>.GetInstance();
string key = "DataReaderToList." + fields +context.CurrentConnectionConfig.DbType+ type.FullName;
string key = "DataReaderToList." + fields + context.CurrentConnectionConfig.DbType + type.FullName;
IDataReaderEntityBuilder<T> eblist = null;
if (cacheManager.ContainsKey(key))
{
@ -32,7 +32,7 @@ namespace SqlSugar
}
catch (Exception ex)
{
Check.Exception(true,ErrorMessage.EntityMappingError, ex.Message);
Check.Exception(true, ErrorMessage.EntityMappingError, ex.Message);
}
return list;
}
@ -76,7 +76,7 @@ namespace SqlSugar
}
else
{
Check.Exception(true,ErrorMessage.NotSupportedDictionary);
Check.Exception(true, ErrorMessage.NotSupportedDictionary);
}
}
}
@ -114,7 +114,7 @@ namespace SqlSugar
else if (childType == PubConst.IntType)
reval.Add((T)Convert.ChangeType(array.Select(it => it.ObjToInt()).ToArray(), type));
else
Check.Exception(true,ErrorMessage.NotSupportedArray);
Check.Exception(true, ErrorMessage.NotSupportedArray);
}
}
return reval;

Loading…
Cancel
Save