Permalink
Switch branches/tags
Nothing to show
Find file Copy path
f2d38d1 Oct 10, 2018
1 contributor

Users who have contributed to this file

19 lines (16 sloc) 555 Bytes
using System;
using Microsoft.EntityFrameworkCore;
namespace Threenine.Data
{
public interface IUnitOfWork : IDisposable
{
IRepository<TEntity> GetRepository<TEntity>() where TEntity : class;
IRepositoryAsync<TEntity> GetRepositoryAsync<TEntity>() where TEntity : class;
IRepositoryReadOnly<TEntity> GetReadOnlyRepository<TEntity>() where TEntity : class;
int SaveChanges();
}
public interface IUnitOfWork<TContext> : IUnitOfWork where TContext : DbContext
{
TContext Context { get; }
}
}