public TEntity Find(Expression <Func <TEntity, bool> > expression) { return(_dbContext.Set <TEntity>().Where(expression).SingleOrDefault()); }
public GenericRepository(AcademicXXIDataContext dbContext) { this._dbContext = dbContext; this.DbSet = _dbContext.Set <TEntity>(); }