dotnet / dotnet/efcore

The documentations for some EntityFrameworkQueryableExtensions methods are not accurate

Open
#31,477 0 comments 0 reactions 0 assignees View on GitHub
area-api-docs customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Related to:
https://github.com/dotnet/efcore/issues/24307
The documentation now says
```C#
/// contains no elements.
```
But an exception would only be thrown for `MaxAsync` for example if the selector does not return a nullable property, if it does, EF would return null instead of throwing.

https://github.com/dotnet/efcore/blob/7318c4b5f83a08af2d903853a833475436358953/src/EFCore/Extensions/EntityFrameworkQueryableExtensions.cs#L948-L958

We might want to make these clearer.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.