From 78ba778446dff3998ea6ba942817dc64022fc1fb Mon Sep 17 00:00:00 2001 From: 28810 <28810@YEXIANGQIN> Date: Wed, 12 Feb 2020 16:28:46 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=20ToList(a=20=3D>=20new?= =?UTF-8?q?=20Dto=20{})=20=E8=BF=99=E7=A7=8D=E6=83=85=E5=86=B5=E6=8C=89?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D=E5=8C=B9=E9=85=8Dr=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=8C=89=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=90=8D=EF=BC=9B#208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FreeSql/Internal/CommonExpression.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeSql/Internal/CommonExpression.cs b/FreeSql/Internal/CommonExpression.cs index d5896cd6..9a9b7a86 100644 --- a/FreeSql/Internal/CommonExpression.cs +++ b/FreeSql/Internal/CommonExpression.cs @@ -140,7 +140,7 @@ namespace FreeSql.Internal { foreach (var dtTb in _tables) { - if (dtTb.Table.Columns.TryGetValue(dtoProp.Name, out var trydtocol) == false) continue; + if (dtTb.Table.ColumnsByCs.TryGetValue(dtoProp.Name, out var trydtocol) == false) continue; if (trydtocol.Attribute.IsIgnore == true) continue; var child = new ReadAnonymousTypeInfo