コード例 #1
0
 public Task <TSource> LastOrDefaultAsync <TSource>(IQueryable <TSource> source, Expression <Func <TSource, bool> > predicate, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(EntityFrameworkQueryableExtensions.LastOrDefaultAsync(source, predicate, cancellationToken));
 }
コード例 #2
0
 public Task <TSource> LastOrDefaultAsync <TSource>(
     IQueryable <TSource> source,
     CancellationToken cancellationToken = default) =>
 EntityFrameworkQueryableExtensions.LastOrDefaultAsync(source, cancellationToken);