mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
NavigateType.Dynamic
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user