CQRS_Simple/CQRS_Simple.Infrastructure/Uow/IUnitOfWork.cs

16 lines
386 B
C#
Raw Normal View History

2022-04-07 14:00:58 +08:00
using Microsoft.EntityFrameworkCore;
using System;
using System.Threading.Tasks;
namespace CQRS_Simple.Infrastructure.Uow
{
public interface IUnitOfWork : IDisposable
{
DbContext Context { get; }
int SaveChanges();
Task<int> SaveChangesAsync();
IRepository<T, TC> GetRepository<T, TC>() where T : Entity<TC>;
void PrintKey();
}
}