mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	update
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user