dotnet / dotnet/efcore

Improve type mapping inference on collections where no model reference is available

Open
#34,378 0 comments 0 reactions 0 assignees View on GitHub
area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Query like this `ss.Set().Where(c => new[] { 2, 999, 1000 }.Where(_ => DateTime.Now.Hour > 10).Count() == 3)` fails to translate/generate, because of no type mapping on `new[] { 2, 999, 1000 }`. There's nothing to infer from, so we should probably fallback to inferring from the collection's type.

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.