public IQueryable <T> All <T>() where T : class
 {
     return(_context.Set <T>());
 }
Example #2
0
 public BaseRepository()
 {
     _dbContext = new AdventureWorks2014Entities();
     _entities  = _dbContext.Set <TBusiness>();
 }