This commit is contained in:
28810
2019-04-19 16:46:55 +08:00
parent e3c0f615f9
commit 6c64eac419
2 changed files with 11 additions and 1 deletions

View File

@ -95,7 +95,7 @@ var t5 = fsql.Select<Song>s.OrderBy(a => Guid.NewGuid()).Limit(1).ToList();
> dotnet add package FreeSql.Repository
```csharp
using (var unitOfWork = fsql.CreateUnitOfWork()) {
using (var uow = fsql.CreateUnitOfWork()) {
var songRepository = uow.GetRepository<Song, int>();
var tagRepository = uow.GetRepository<Tag, int>();