Browse Source

Update Demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
6098c69040
  1. 7
      Src/Asp.Net/SqlServerTest/Demos/1_Query.cs

7
Src/Asp.Net/SqlServerTest/Demos/1_Query.cs

@ -479,6 +479,13 @@ namespace OrmTest.Demo
.OrderBy(st => st.Id) .OrderBy(st => st.Id)
.Select(st => st) .Select(st => st)
.ToList(); .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() public static void Funs()
{ {

Loading…
Cancel
Save