Skip to content

Commit 16561cb

Browse files
authored
Update readme.md
1 parent d85c946 commit 16561cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ var t5 = fsql.Select<Song>()
111111
112112
```csharp
113113
using (var uow = fsql.CreateUnitOfWork()) {
114-
var songRepository = uow.GetRepository<Song, int>();
115-
var tagRepository = uow.GetRepository<Tag, int>();
114+
var repo1 = uow.GetRepository<Song, int>();
115+
var repo2 = uow.GetRepository<Tag, int>();
116116

117-
await songRepository.InsertAsync(new Song());
118-
await tagRepository.InsertAsync(new Tag());
117+
await repo1.InsertAsync(new Song());
118+
await repo2.InsertAsync(new Tag());
119119
uow.Commit();
120120
}
121121
```
@@ -168,9 +168,9 @@ public void ConfigureServices(IServiceCollection services) {
168168

169169
Temporary disable:
170170
```csharp
171-
var songRepository = fsql.GetRepository<Song, int>();
171+
var repoq = fsql.GetRepository<Song, int>();
172172

173-
using (songRepository.DataFilter.Disable("Tenant")) {
173+
using (repo1.DataFilter.Disable("Tenant")) {
174174
//Tenant Invalid
175175
}
176176
//Tenant restore

0 commit comments

Comments
 (0)