mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
update
This commit is contained in:
parent
e970bd731b
commit
03404db54e
11
readme.md
11
readme.md
@ -87,6 +87,17 @@ var t2 = fsql.Select<Song>()
|
|||||||
.Where(s => s.Tags.AsSelect()
|
.Where(s => s.Tags.AsSelect()
|
||||||
.Any(t => t.Name == "国语"))
|
.Any(t => t.Name == "国语"))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
//Other
|
||||||
|
var t3 = fsql.Select<Xxx>()
|
||||||
|
.Where(a => a.IsDelete == 0)
|
||||||
|
.WhereIf(keyword != null, a => a.UserName.Contains(keyword))
|
||||||
|
.WhereIf(role_id > 0, a => a.RoleId == role_id)
|
||||||
|
.Where(a => a.Nodes.AsSelect().Any(t => t.Parent.Id == t.UserId))
|
||||||
|
.Count(out var total)
|
||||||
|
.Page(page, size)
|
||||||
|
.OrderByDescending(a => a.Id)
|
||||||
|
.ToList()
|
||||||
```
|
```
|
||||||
更多前往Wiki:[《Select 查询数据文档》](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2)
|
更多前往Wiki:[《Select 查询数据文档》](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user