|
|
@ -21,7 +21,13 @@ namespace Volo.Abp.Uow.EntityFrameworkCore |
|
|
AttendedDbContexts = new List<IEfCoreDbContext>(); |
|
|
AttendedDbContexts = new List<IEfCoreDbContext>(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void Commit() |
|
|
public Task CommitAsync() |
|
|
|
|
|
{ |
|
|
|
|
|
Commit(); |
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void Commit() |
|
|
{ |
|
|
{ |
|
|
DbContextTransaction.Commit(); |
|
|
DbContextTransaction.Commit(); |
|
|
|
|
|
|
|
|
@ -36,12 +42,6 @@ namespace Volo.Abp.Uow.EntityFrameworkCore |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Task CommitAsync() |
|
|
|
|
|
{ |
|
|
|
|
|
Commit(); |
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void Dispose() |
|
|
public void Dispose() |
|
|
{ |
|
|
{ |
|
|
DbContextTransaction.Dispose(); |
|
|
DbContextTransaction.Dispose(); |
|
|
|