Browse Source

Update NavigateManager

pull/19/head
sunkaixuan 2 years ago
parent
commit
ab68803f30
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

1
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

@ -453,6 +453,7 @@ namespace SqlSugar
{
var navEntity = navObjectNameColumnInfo.PropertyInfo.PropertyType;
var navEntityInfo = this.Context.EntityMaintenance.GetEntityInfo(navEntity);
this.Context.InitMappingInfo(navEntity);
var sqlObj = GetWhereSql(navObjectNameColumnInfo.Navigat.Name);
Check.ExceptionEasy(sqlObj.MappingExpressions.IsNullOrEmpty(), $"{expression} error,dynamic need MappingField ,Demo: Includes(it => it.Books.MappingField(z=>z.studenId,()=>it.StudentId).ToList())", $"{expression}解析出错, 自定义映射需要 MappingField ,例子: Includes(it => it.Books.MappingField(z=>z.studenId,()=>it.StudentId).ToList())");
if (list.Any() && navObjectNamePropety.GetValue(list.First()) == null)

Loading…
Cancel
Save