mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 10:55:02 +08:00
5.0.4 BUG
This commit is contained in:
@@ -446,6 +446,7 @@ namespace SqlSugar
|
|||||||
var mappingKeys = GetMappingColumns(parameter.CurrentExpression);
|
var mappingKeys = GetMappingColumns(parameter.CurrentExpression);
|
||||||
var isSameType = mappingKeys.Keys.Count>0;
|
var isSameType = mappingKeys.Keys.Count>0;
|
||||||
CallContextThread<Dictionary<string,string>>.SetData("Exp_Select_Mapping_Key", mappingKeys);
|
CallContextThread<Dictionary<string,string>>.SetData("Exp_Select_Mapping_Key", mappingKeys);
|
||||||
|
CallContextAsync<Dictionary<string, string>>.SetData("Exp_Select_Mapping_Key", mappingKeys);
|
||||||
this.Expression = item;
|
this.Expression = item;
|
||||||
this.Start();
|
this.Start();
|
||||||
var shortName = parameter.CommonTempData;
|
var shortName = parameter.CommonTempData;
|
||||||
|
|||||||
@@ -272,6 +272,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var readerValues = DataReaderToDictionary(reader, tType);
|
var readerValues = DataReaderToDictionary(reader, tType);
|
||||||
var mappingKeys = CallContextThread<Dictionary<string, string>>.GetData("Exp_Select_Mapping_Key");
|
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>();
|
var result = new Dictionary<string, object>();
|
||||||
foreach (var item in classProperties)
|
foreach (var item in classProperties)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user