Пример #1
0
 public async Task <bool> AnyAsync(Expression <Func <T, bool> > whereLambda)
 {
     return(await _repository.AnyAsync(whereLambda));
 }
Пример #2
0
 /// <summary>
 ///     查是否存在此数据
 /// </summary>
 /// <param name="whereExpression"></param>
 /// <param name="tableName"></param>
 /// <returns></returns>
 public async Task <bool> AnyAsync(Expression <Func <TEntity, bool> > whereExpression, string tableName = null) => await BaseDal.AnyAsync(whereExpression, tableName);