Skip to content

Commit

Permalink
Documented InvalidOperationException to MaxAsync method (#24286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marusyk authored Feb 26, 2021
1 parent b247ded commit 1b92691
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EFCore/Extensions/EntityFrameworkQueryableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ public static Task<TResult> MinAsync<TSource, TResult>(
/// The task result contains the maximum value in the sequence.
/// </returns>
/// <exception cref="ArgumentNullException"> <paramref name="source" /> is <see langword="null" />. </exception>
/// <exception cref="InvalidOperationException"> <paramref name="source" /> contains no elements. </exception>
/// <exception cref="OperationCanceledException"> If the <see cref="CancellationToken"/> is canceled. </exception>
public static Task<TSource> MaxAsync<TSource>(
[NotNull] this IQueryable<TSource> source,
Expand Down Expand Up @@ -783,6 +784,7 @@ public static Task<TSource> MaxAsync<TSource>(
/// <exception cref="ArgumentNullException">
/// <paramref name="source" /> or <paramref name="selector" /> is <see langword="null" />.
/// </exception>
/// <exception cref="InvalidOperationException"> <paramref name="source" /> contains no elements. </exception>
/// <exception cref="OperationCanceledException"> If the <see cref="CancellationToken"/> is canceled. </exception>
public static Task<TResult> MaxAsync<TSource, TResult>(
[NotNull] this IQueryable<TSource> source,
Expand Down

0 comments on commit 1b92691

Please sign in to comment.