update

2881099
2022-05-22 13:27:12 +08:00
parent af8d2de10e
commit f25527a792
2 changed files with 14 additions and 0 deletions

@@ -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'"

@@ -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'"