Navigate.Dynamic multi-level BUG

This commit is contained in:
sunkaixuan
2022-05-05 09:13:59 +08:00
parent 4a58971fd3
commit 1abf16f817
5 changed files with 32 additions and 28 deletions

View File

@@ -14,7 +14,10 @@ namespace OrmTest
var list=db.Queryable<StudentA>()
.Includes(it => it.Books.Where(z=>z.BookId==1)
.MappingField(z=>z.studenId,()=>it.StudentId)
.MappingField(z => z.BookId, () => it.StudentId).ToList())
.MappingField(z => z.BookId, () => it.StudentId).ToList()
, c=>c.bookChilds
.MappingField(z=>z.BookId,()=>c.BookId).ToList())
.ToList();
var list2 = db.Queryable<StudentA>().ToList();
@@ -58,6 +61,8 @@ namespace OrmTest
[SugarColumn(ColumnName = "Name")]
public string Names { get; set; }
public int studenId { get; set; }
[Navigate(NavigateType.Dynamic,null)]
public List<BookA> bookChilds { get; set; }
}
}
}