mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
5.0.4 BUG
This commit is contained in:
parent
6459c6e1f5
commit
b9318e014a
Src/Asp.Net/SqlSugar
@ -446,6 +446,7 @@ namespace SqlSugar
|
||||
var mappingKeys = GetMappingColumns(parameter.CurrentExpression);
|
||||
var isSameType = mappingKeys.Keys.Count>0;
|
||||
CallContextThread<Dictionary<string,string>>.SetData("Exp_Select_Mapping_Key", mappingKeys);
|
||||
CallContextAsync<Dictionary<string, string>>.SetData("Exp_Select_Mapping_Key", mappingKeys);
|
||||
this.Expression = item;
|
||||
this.Start();
|
||||
var shortName = parameter.CommonTempData;
|
||||
|
@ -272,6 +272,10 @@ namespace SqlSugar
|
||||
{
|
||||
var readerValues = DataReaderToDictionary(reader, tType);
|
||||
var mappingKeys = CallContextThread<Dictionary<string, string>>.GetData("Exp_Select_Mapping_Key");
|
||||
if (mappingKeys == null)
|
||||
{
|
||||
mappingKeys = CallContextAsync<Dictionary<string, string>>.GetData("Exp_Select_Mapping_Key");
|
||||
}
|
||||
var result = new Dictionary<string, object>();
|
||||
foreach (var item in classProperties)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user