mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
update
This commit is contained in:
parent
2229b46cd7
commit
c450176aec
@ -74,7 +74,7 @@ class Tag {
|
|||||||
//OneToOne、ManyToOne
|
//OneToOne、ManyToOne
|
||||||
var t0 = fsql.Select<Tag>()
|
var t0 = fsql.Select<Tag>()
|
||||||
.Where(a => a.Parent.Parent.Name == "粤语")
|
.Where(a => a.Parent.Parent.Name == "粤语")
|
||||||
.Include(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
|
.Include(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
//OneToMany
|
//OneToMany
|
||||||
@ -87,7 +87,7 @@ var t1 = fsql.Select<Tag>()
|
|||||||
var t2 = fsql.Select<Song>()
|
var t2 = fsql.Select<Song>()
|
||||||
.Where(s => s.Tags.AsSelect()
|
.Where(s => s.Tags.AsSelect()
|
||||||
.Any(t => t.Name == "国语"))
|
.Any(t => t.Name == "国语"))
|
||||||
.Include(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
|
.Include(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
//Other
|
//Other
|
||||||
|
Loading…
x
Reference in New Issue
Block a user