mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-22 00:00:57 +08:00
update
@@ -4,12 +4,12 @@ FreeSql.Repository 定义了 IBaseRepository\<T\> 仓储接口,实现了单表
|
||||
|
||||
**AggregateRootRepository 是 IBaseRepository\<T\> 一种新的尝试实现**,它将自动处理 OneToOne/OneToMany 导航属性,以及 ManyToMany(中间表) 的级联添加、级联更新、级联删除、级联查询(查询时自动 Include/IncludeMany 它们)。
|
||||
|
||||
> dotnet add package FreeSql.Extensions.AggregateRoot
|
||||
|
||||
```csharp
|
||||
var repository = fsql.GetAggregateRootRepository<Order>();
|
||||
```
|
||||
|
||||
> dotnet add package FreeSql.Extensions.AggregateRoot
|
||||
|
||||
意见征集、讨论区:[https://github.com/dotnetcore/FreeSql/discussions/1235](https://github.com/dotnetcore/FreeSql/discussions/1235)
|
||||
|
||||
## 设定边界
|
||||
|
||||
Reference in New Issue
Block a user