using Microsoft.EntityFrameworkCore; using System.Threading; using System.Threading.Tasks; namespace UserManagement.Common.UnitOfWork { public interface IUnitOfWork where TContext : DbContext { int Save(); Task SaveAsync(CancellationToken cancellationToken = default); TContext Context { get; } } }