Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't remove the annotation in NonNullableConventionBase #35151

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

AndriySvyryd
Copy link
Member

The convention is getting invoked after ModelFinalizing in some cases, so it will recreate the annotation, wasting CPU cycles

@AndriySvyryd AndriySvyryd requested a review from a team as a code owner November 20, 2024 00:51
@@ -13,7 +13,7 @@ namespace Microsoft.EntityFrameworkCore.Metadata.Conventions;
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-conventions">Model building conventions</see> for more information and examples.
/// </remarks>
public abstract class NonNullableConventionBase : IModelFinalizingConvention
Copy link
Member

Choose a reason for hiding this comment

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

@AndriySvyryd Does this mean I can ignore the task I have to revisit my last PR on this following your comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes 😄

@AndriySvyryd AndriySvyryd merged commit d84faca into main Nov 20, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the NonNullable branch November 20, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants