mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 04:35:29 +08:00
-
This commit is contained in:
parent
610a690f39
commit
247dade237
@ -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…
Reference in New Issue
Block a user