Skip to content

Fix argument forwarding in metadata builders, paging and relational helpers - #39799

Open
unsafePtr wants to merge 1 commit into
dotnet:mainfrom
unsafePtr:fix/corpus-argument-order
Open

unsafePtr wants to merge 1 commit into
dotnet:mainfrom
unsafePtr:fix/corpus-argument-order

Conversation

@unsafePtr

Copy link
Copy Markdown
Contributor

Fixes #39798.

Correct nine calls that pass values into the wrong same-typed or optional parameters.
The changes preserve configuration values and their precedence in metadata builders, nested complex-collection names, Cosmos paging parameters, and the SQL Server provider comparer.
They also correct the computed-column error message and enable database-function parameter annotation comparisons in the model asserter.
The issue describes each observed behavior and correction.

Added 19 regression cases; 16 fail against the original implementations and all pass with these changes.
Updated the existing computed-column assertion that encoded the reversed message.

Validation with the repository-selected .NET 12 preview SDK on Linux:

  • EFCore.Tests: 7,057 passed.

  • EFCore.Cosmos.Tests: 362 passed.

  • EFCore.Relational.Tests: 1,686 passed, 1 existing skip.

  • EFCore.SqlServer.Tests: 1,503 passed.

  • Formatted touched files and checked the final diff; no database-backed functional suites were run.

  • I've read the guidelines for contributing and seen the walkthrough.

  • I've posted a comment on an issue with a detailed description of how I am planning to contribute and got approval from a member of the team.

  • The code builds and the four affected unit-test suites pass locally.

  • Commit messages follow the repository template format.

  • Tests for the changes have been added.

  • Code follows the same patterns and style as existing code in this repo.

The contribution guidelines have been read; the walkthrough and team-approval items are left unchecked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect argument forwarding in metadata builders, Cosmos paging and relational helpers

1 participant