예제 #1
0
 /// <summary>
 /// 获取单个实体
 /// </summary>
 /// <param name="predicate">查询条件</param>
 /// <returns></returns>
 public async Task <TEntity> SingleAsync(Expression <Func <TEntity, bool> > predicate)
 {
     return(await _wrapper.SingleAsync(predicate));
 }