Example #1
0
 /// <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));
 }
Example #2
0
 public int Count(Expression <Func <TEntity, bool> > where)
 {
     return(_dbSet.Count(where));
 }