示例#1
0
文件: DbContext.cs 项目: zj-work/DZ
 /// <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));
 }
示例#2
0
 public int Count(Expression <Func <TEntity, bool> > where)
 {
     return(_dbSet.Count(where));
 }