Browse Source

Update ContextMethod.cs

SqlSugar5
sunkaixuan 2 years ago
parent
commit
926c0e5f49
  1. 2
      Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs

2
Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs

@ -436,7 +436,7 @@ namespace SqlSugar
{
var key = typeName + "." + name;
var info = readerValues.Select(it => it.Key).FirstOrDefault(it => it.ToLower() == key.ToLower());
if (info == null && typeName !=null && typeName.Contains("<>f__AnonymousType"))
if (info == null)
{
key = item.Name + "." + name;
info = readerValues.Select(it => it.Key).FirstOrDefault(it => it.ToLower() == key.ToLower());

Loading…
Cancel
Save