using Microsoft.EntityFrameworkCore; using System; using System.Threading.Tasks; namespace CQRS_Simple.Infrastructure.Uow { public interface IUnitOfWork : IDisposable { DbContext Context { get; } int SaveChanges(); Task SaveChangesAsync(); IRepository GetRepository() where T : Entity; void PrintKey(); } }