mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
750 B
25 lines
750 B
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using JetBrains.Annotations;
|
|
using Volo.Abp.DependencyInjection;
|
|
using Volo.DependencyInjection;
|
|
|
|
namespace Volo.Abp.Uow
|
|
{
|
|
public interface IUnitOfWork : IDisposable, IServiceProviderAccessor, ITransientDependency
|
|
{
|
|
[CanBeNull]
|
|
IDatabaseApi FindDatabaseApi([NotNull] string id);
|
|
|
|
[NotNull]
|
|
IDatabaseApi GetOrAddDatabaseApi(string id, Func<IDatabaseApi> factory);
|
|
|
|
IDatabaseApi AddDatabaseApi(string id, IDatabaseApi databaseApi);
|
|
|
|
Task SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken));
|
|
|
|
Task CompleteAsync(CancellationToken cancellationToken = default(CancellationToken));
|
|
}
|
|
}
|