/// <summary> /// /// </summary> /// <typeparam name="T"></typeparam> /// <param name="exp"></param> /// <returns></returns> public bool IsExist <T>(Expression <Func <T, bool> > exp) where T : class { return(_context.Set <T>().Any(exp)); }
public BaseRepository(EFCoreDBContext context) { _context = context; _dbSet = _context.Set <T>(); }