16 lines
386 B
C#
16 lines
386 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|