mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
update
This commit is contained in:
parent
c66cb1aeab
commit
2229b46cd7
@ -27,7 +27,7 @@ FreeSql 是一个功能强大的 .NETStandard 库,用于对象关系映射程
|
||||
|  | [《Select》](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2) \| [《Update》](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9) \| [《Insert》](https://github.com/2881099/FreeSql/wiki/%e6%b7%bb%e5%8a%a0) \| [《Delete》](https://github.com/2881099/FreeSql/wiki/%e5%88%a0%e9%99%a4) |
|
||||
|  | [《表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) \| [《CodeFirst》](https://github.com/2881099/FreeSql/wiki/CodeFirst) \| [《DbFirst》](https://github.com/2881099/FreeSql/wiki/DbFirst) |
|
||||
|  | [《Repository》](https://github.com/2881099/FreeSql/wiki/Repository) \| [《UnitOfWork》](https://github.com/2881099/FreeSql/wiki/%e5%b7%a5%e4%bd%9c%e5%8d%95%e5%85%83) \| [《过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) \| [《乐观锁》](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9) \| [《DbContext》](https://github.com/2881099/FreeSql/wiki/DbContext) |
|
||||
|  | [《读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) \| [《分区分表》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e5%8c%ba%e5%88%86%e8%a1%a8) \| [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \| [更新日志](https://github.com/2881099/FreeSql/wiki/%e6%9b%b4%e6%96%b0%e6%97%a5%e5%bf%97) |
|
||||
|  | [《读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) \| [《分区分表》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e5%8c%ba%e5%88%86%e8%a1%a8) \| [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \| [*更新日志*](https://github.com/2881099/FreeSql/wiki/%e6%9b%b4%e6%96%b0%e6%97%a5%e5%bf%97) |
|
||||
|
||||
# Quick start
|
||||
|
||||
@ -74,6 +74,7 @@ class Tag {
|
||||
//OneToOne、ManyToOne
|
||||
var t0 = fsql.Select<Tag>()
|
||||
.Where(a => a.Parent.Parent.Name == "粤语")
|
||||
.Include(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
|
||||
.ToList();
|
||||
|
||||
//OneToMany
|
||||
@ -86,6 +87,7 @@ var t1 = fsql.Select<Tag>()
|
||||
var t2 = fsql.Select<Song>()
|
||||
.Where(s => s.Tags.AsSelect()
|
||||
.Any(t => t.Name == "国语"))
|
||||
.Include(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
|
||||
.ToList();
|
||||
|
||||
//Other
|
||||
|
Loading…
x
Reference in New Issue
Block a user