Exemplo n.º 1
0
 public static Task <List <TEntity> > GetListAsync <TEntity>(
     this IEntityQuery <TEntity> repo,
     CancellationToken cancellationToken) where TEntity : class
 {
     return(repo.GetListAsync(null, cancellationToken));
 }
Exemplo n.º 2
0
 public static Task <List <TEntity> > GetListAsync <TEntity>(
     this IEntityQuery <TEntity> repo,
     IQuerySpec <TEntity> querySpec) where TEntity : class
 {
     return(repo.GetListAsync(querySpec, default(CancellationToken)));
 }