mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-18 03:50:58 +08:00
update
12
返回数据.md
12
返回数据.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user