Example #1
0
 public virtual Task <TEntity> UpdateAsync(TEntity entity) => AsyncAll.GetAsyncResult(() => Update(entity));
Example #2
0
 public virtual Task <TEntity> GetAsync(TIdentifier id) => AsyncAll.GetAsyncResult(() => Get(id));
Example #3
0
 public virtual Task <IEnumerable <TEntity> > GetAllAsync() => AsyncAll.GetAsyncResult(() => GetAll());
Example #4
0
 public virtual Task <long> CountAsync() => AsyncAll.GetAsyncResult(() => Count());
Example #5
0
 public virtual Task <TEntity> AddAsync(TEntity entity) => AsyncAll.GetAsyncResult(() => Add(entity));
Example #6
0
 public virtual Task <bool> ExistsAsync(TIdentifier id) => AsyncAll.GetAsyncResult(() => Exists(id));