Example #1
0
 public IEnumerable <T> GetAll()
 {
     return(_dataContext.Set <T>().AsQueryable());
 }
Example #2
0
 public RepositoryBase(CommentDbContext dataContext)
 {
     _dataContext = dataContext;
     dbSet        = _dataContext.Set <T>();
 }