mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-05 07:50:52 +08:00
update
@@ -71,6 +71,13 @@ List<ANONYMOUS_TYPE> t10 = fsql.Select<Topic>().ToList(a => new {
|
|||||||
min = fsql.Select<T2>().Min(b => b.Id),
|
min = fsql.Select<T2>().Min(b => b.Id),
|
||||||
name = fsql.Select<2>().First(b => b.name)
|
name = fsql.Select<2>().First(b => b.name)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Return the records of the subquery v3.2.650+
|
||||||
|
List<匿名类> t10 = fsql.Select<Topic>().ToList(a => new {
|
||||||
|
a.Id,
|
||||||
|
list1 = fsql.Select<T2>().ToList(),
|
||||||
|
list2 = fsql.Select<T2>().Where(b => b.TopicId == a.Id).ToList()
|
||||||
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
> In the early constant mechanism, we left it to raw SQL. If you really need to return the string, you can write: "'xxx'"
|
> In the early constant mechanism, we left it to raw SQL. If you really need to return the string, you can write: "'xxx'"
|
||||||
|
|||||||
7
返回数据.md
7
返回数据.md
@@ -60,6 +60,13 @@ List<匿名类> t10 = fsql.Select<Topic>().ToList(a => new {
|
|||||||
min = fsql.Select<T2>().Min(b => b.Id),
|
min = fsql.Select<T2>().Min(b => b.Id),
|
||||||
name = fsql.Select<2>().First(b => b.name)
|
name = fsql.Select<2>().First(b => b.name)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//返回子查询集合 v3.2.650+
|
||||||
|
List<匿名类> t10 = fsql.Select<Topic>().ToList(a => new {
|
||||||
|
a.Id,
|
||||||
|
list1 = fsql.Select<T2>().ToList(),
|
||||||
|
list2 = fsql.Select<T2>().Where(b => b.TopicId == a.Id).ToList()
|
||||||
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
> 常量机制早期留给了原生SQL,如果真的需要返回该字符串:"'xxx'"
|
> 常量机制早期留给了原生SQL,如果真的需要返回该字符串:"'xxx'"
|
||||||
|
|||||||
Reference in New Issue
Block a user