dotnet / dotnet/arcade-services

[Arcade-Services] Check for usage of unsupported linq methods in EF queries

Open
#3,020 0 comments 0 reactions 0 assignees View on GitHub
Copilot suitable
Dominant language
C#
Stars
86
Forks
86
Avg merge
1d 8h
Merged PRs (30d)
35

Description

Migrated from https://github.com/dotnet/core-eng/issues/10078

@riarenas wrote:

https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/ef/language-reference/supported-and-unsupported-linq-methods-linq-to-entities contains a list of supported and unsupported linq methods that we can use.

@ChadNedzlek made an effort to remove all usage of these operators, but we missed some places.

https://github.com/dotnet/core-eng/issues/10072 made evident that we missed some LastOrDefaults in the BuildsController of older API versions which are still in use by the 3.x publishing infrastructure:

https://github.com/dotnet/arcade-services/blob/c54e38e5279d582ce71812733f9894c487de46d4/src/Maestro/Maestro.Web/Api/v2019_01_16/Controllers/BuildsController.cs#L250-L262

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.