Example #1
0
 protected IQueryable <TEntity> GetSet <TEntity>() where TEntity : class
 {
     return(_context.Set <TEntity>());
 }
 public EfRepository(SampleAppContext context)
 {
     _context = context ?? throw new ArgumentNullException("Repository - Context");
     _dbSet   = context.Set <T>();
 }