Skip to content

[release/10.0] Correct [DynamicDependency] reference on ExecuteUpdateAsync (#37194)#37359

Merged
roji merged 1 commit intodotnet:release/10.0from
roji:ExecuteUpdateTrimming10
Dec 20, 2025
Merged

[release/10.0] Correct [DynamicDependency] reference on ExecuteUpdateAsync (#37194)#37359
roji merged 1 commit intodotnet:release/10.0from
roji:ExecuteUpdateTrimming10

Conversation

@roji
Copy link
Member

@roji roji commented Dec 13, 2025

Fixes #37192

Description

In EF 10, ExecuteUpdate received improvements to make it easier to use in dynamic scenarios. Unfortunately, the [DynamicDependency] attribute set on it - which helps users who trim their applications - wasn't specified correctly.

Customer impact

Users upgrading to 10 and using ExecuteUpdateAsync and using trimming get a linker warning because of the mangled [DynamicDependency], and their application may not work correctly.

How found

Multiple customers reported on 10.0.

Regression

Yes.

Testing

Trimming annotation issue, testing is impractical.

Risk

Almost non-existent, fix to [DynamicDependency] attribute only.

@roji roji marked this pull request as ready for review December 13, 2025 08:12
@roji roji requested a review from a team as a code owner December 13, 2025 08:12
@roji roji requested a review from artl93 December 17, 2025 08:16
Copy link
Member

@artl93 artl93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Customer reported regression. Approved.
Are there integration tests for this type of thing?

@roji
Copy link
Member Author

roji commented Dec 19, 2025

Are there integration tests for this type of thing?

We have some minimal trimming tests, but nothing exhaustive unfortunately... I think that when we set our sights on proper NativeAOT support, part of that will have to be establishing good coverage for this kind of thing.

@roji
Copy link
Member Author

roji commented Dec 20, 2025

Approved via email.

@roji roji merged commit 23be172 into dotnet:release/10.0 Dec 20, 2025
7 checks passed
@roji roji deleted the ExecuteUpdateTrimming10 branch December 20, 2025 09:50
@rbhanda rbhanda added this to the 10.0.3 milestone Dec 22, 2025
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.

4 participants