Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[release/9.0-staging] Make SnapshotModelProcessor idempotent.#35543

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AndriySvyryd merged 1 commit intorelease/9.0-stagingfromIssue35146
Jan 29, 2025

Conversation

@AndriySvyryd
Copy link
Member

@AndriySvyrydAndriySvyryd commentedJan 28, 2025
edited
Loading

Fixes#35146
Port of#35432

Description

Each EF migration contains a snapshot of the model at the time the migration was created. The snapshots might have been created by an older version of EF, so we need to run them throughSnapshotModelProcessor to make them conform to the current version of EF.

Customer impact

In EF9 we changed the way model snapshots are handled to avoid initializing them again. However, when several certain migrations management operations are called in succession this could lead to the snapshots to be processed several times, which will result in an exception most of the times. The workaround is to avoid calling the operations in the same process, but this is not always possible.

How found

Multiple customer reports on 9.0.0

Regression

Yes, from 8.0.

Testing

Test added.

Risk

Low, this only affects design-time code.

@AndriySvyrydAndriySvyryd merged commit4623a39 intorelease/9.0-stagingJan 29, 2025
7 checks passed
@AndriySvyrydAndriySvyryd deleted the Issue35146 branchJanuary 29, 2025 18:42
This was referencedJul 22, 2025
This was referencedNov 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@SamMonoRTSamMonoRTSamMonoRT approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@AndriySvyryd@SamMonoRT

[8]ページ先頭

©2009-2025 Movatter.jp