public BaseRepository() { try { _context = _contextManager.GetContext(); DbSet = _context.Set <TEntity>(); } catch (Exception erro) { throw erro; } }
public UnitOfWork() { _context = _contextManager.GetContext(); }