public T GetSingle(Expression <Func <T, bool> > predicate) { return(_context.Set <T>().FirstOrDefault(predicate)); }
public BaseRepository(WmIdentityDbContext context) { _context = context; _dbSet = _context.Set <T>(); }