mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 14:15:50 +08:00
-
This commit is contained in:
@@ -184,7 +184,7 @@ namespace SqlSugar
|
||||
{
|
||||
using (dataReader)
|
||||
{
|
||||
if (type.Name.Contains("KeyValuePair"))
|
||||
if (type.Name.StartsWith("KeyValuePair"))
|
||||
{
|
||||
return GetKeyValueList<T>(type, dataReader);
|
||||
}
|
||||
@@ -206,7 +206,7 @@ namespace SqlSugar
|
||||
{
|
||||
using (dataReader)
|
||||
{
|
||||
if (type.Name.Contains("KeyValuePair"))
|
||||
if (type.Name.StartsWith("KeyValuePair"))
|
||||
{
|
||||
return await GetKeyValueListAsync<T>(type, dataReader);
|
||||
}
|
||||
@@ -226,7 +226,7 @@ namespace SqlSugar
|
||||
}
|
||||
public virtual List<T> DataReaderToListNoUsing<T>(Type type, IDataReader dataReader)
|
||||
{
|
||||
if (type.Name.Contains("KeyValuePair"))
|
||||
if (type.Name.StartsWith("KeyValuePair"))
|
||||
{
|
||||
return GetKeyValueList<T>(type, dataReader);
|
||||
}
|
||||
@@ -245,7 +245,7 @@ namespace SqlSugar
|
||||
}
|
||||
public virtual Task<List<T>> DataReaderToListNoUsingAsync<T>(Type type, IDataReader dataReader)
|
||||
{
|
||||
if (type.Name.Contains("KeyValuePair"))
|
||||
if (type.Name.StartsWith("KeyValuePair"))
|
||||
{
|
||||
return GetKeyValueListAsync<T>(type, dataReader);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user