mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 08:20:52 +08:00
Updated Repository (markdown)
@@ -9,8 +9,9 @@ FreeSql.Repository 作为扩展,实现了通用仓储层功能。与其他规
|
||||
|
||||
## 安装
|
||||
|
||||
> dotnet add package FreeSql.Repository
|
||||
|
||||
```bash
|
||||
dotnet add package FreeSql.Repository
|
||||
```
|
||||
## 定义
|
||||
|
||||
```csharp
|
||||
@@ -61,7 +62,7 @@ public void ConfigureServices(IServiceCollection services) {
|
||||
}
|
||||
|
||||
//在控制器使用
|
||||
public SongsController(GuidRepository<Song> repos1) {
|
||||
public SongsController(IBaseRepository<Song> repos1) {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user