update

28810
2019-11-15 16:46:27 +08:00
parent 600003ea4c
commit 1b97792b0b

@@ -74,8 +74,6 @@ List<匿名类> t7 = select.From<TestTypeInfo, TestTypeParentInfo>((s, b, c) =>
.LeftJoin(a => c.Id == b.ParentId)
.Where(a => b.Name != "xxx")).ToList((a, b, c) => new {
a.Id,
a.Title,
a.Type,
ccc = new { a.Id, a.Title },
tp = a.Type,
tp2 = new {
@@ -89,6 +87,16 @@ List<匿名类> t7 = select.From<TestTypeInfo, TestTypeParentInfo>((s, b, c) =>
}
}
});
//返回子查询的字段
List<匿名类> t6 = select.Where(a => a.Id > 0).Skip(100).Limit(200)
.ToList(a => new {
a.Id,
count = fsql.Select<T2>().Count(),
max = fsql.Select<T2>().Max(b => b.Id),
min = fsql.Select<T2>().Min(b => b.Id),
name = fsql.Select<2>().First(b => b.name)
});
```
### 执行SQL