mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update Demo
This commit is contained in:
parent
42210530ba
commit
6098c69040
@ -479,6 +479,13 @@ namespace OrmTest.Demo
|
||||
.OrderBy(st => st.Id)
|
||||
.Select(st => st)
|
||||
.ToList();
|
||||
|
||||
var subquery = db.Queryable<Student>().Where(it => it.Id == 1);
|
||||
var subquery2 = db.Queryable<Student>();
|
||||
db.Queryable(subquery, subquery2, (st1, st2) => st1.Id == st2.Id).Select((st1,st2)=>new {
|
||||
id=st1.Id,
|
||||
name=st2.Name
|
||||
}).ToList();
|
||||
}
|
||||
public static void Funs()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user