/// <summary> /// Query count of data by condition /// </summary> /// <param name="whereExpression"></param> /// <returns></returns> public int GetCount(Expression <Func <T, bool> > whereExpression) { return(currentDb.Count(whereExpression)); }
public int Count(Expression <Func <TEntity, bool> > where) { return(_dbSet.Count(where)); }