- 修复 IAdo.Query 返回实体中带有延时导航属性,读取顺序不对的 bug;

This commit is contained in:
28810 2020-09-17 13:24:54 +08:00
parent 194bff47b8
commit 4c26fa414c
2 changed files with 11 additions and 3 deletions

View File

@ -130,6 +130,13 @@
清空状态数据
</summary>
</member>
<member name="M:FreeSql.DbSet`1.RemoveAsync(System.Linq.Expressions.Expression{System.Func{`0,System.Boolean}})">
<summary>
根据 lambda 条件删除数据
</summary>
<param name="predicate"></param>
<returns></returns>
</member>
<member name="M:FreeSql.DbSet`1.Add(`0)">
<summary>
添加

View File

@ -91,9 +91,10 @@ namespace FreeSql.Internal.CommonProvider
internal Dictionary<string, PropertyInfo> GetQueryTypeProperties(Type type)
{
var tb = _util.GetTableByEntity(type);
var props = tb?.Properties ?? type.GetPropertiesDictIgnoreCase();
return props;
return type.GetPropertiesDictIgnoreCase(); //与 ExecuteArrayRowReadClassOrTuple 顺序同步,防止【延时属性】获取到位置不对的问题
//var tb = _util.GetTableByEntity(type);
//var props = tb?.Properties ?? type.GetPropertiesDictIgnoreCase();
//return props;
}
public bool ExecuteConnectTest()