This commit is contained in:
28810 2019-05-11 07:26:13 +08:00
parent 2229b46cd7
commit c450176aec

View File

@ -74,7 +74,7 @@ class Tag {
//OneToOne、ManyToOne
var t0 = fsql.Select<Tag>()
.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();
//OneToMany
@ -87,7 +87,7 @@ var t1 = fsql.Select<Tag>()
var t2 = fsql.Select<Song>()
.Where(s => s.Tags.AsSelect()
.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();
//Other