NavigateType.Dynamic

This commit is contained in:
sunkaixuan
2022-04-29 20:58:12 +08:00
parent 37e68b7138
commit 78fc491635
2 changed files with 19 additions and 14 deletions

View File

@@ -12,8 +12,9 @@ namespace OrmTest
{
var db = NewUnitTest.Db;
var list=db.Queryable<StudentA>()
.Includes(it => it.Books.MappingField(z=>z.studenId,()=>it.StudentId)
.MappingField(z => z.studenId, () => it.StudentId).ToList())
.Includes(it => it.Books.Where(z=>z.BookId==1)
.MappingField(z=>z.studenId,()=>it.StudentId)
.MappingField(z => z.BookId, () => it.StudentId).ToList())
.ToList();
}