-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix Migration Batching When Seed Data Has Non-Writable Columns (I.E. RowVersion) #18320
Fix Migration Batching When Seed Data Has Non-Writable Columns (I.E. RowVersion) #18320
Conversation
@smitpatel I removed the issue reference. This is certainly an issue, but I'm not sure if it has been reported before. |
m.KeyValues, | ||
v => Assert.Equal(45, v)); | ||
}), | ||
builderOptions => builderOptions.UseFakeRelational(a => a.MaxBatchSize(4))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need this option? It should work without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase this onto the release/3.1 branch and add description of the changes to the commit message
…://github.com/crowet/EntityFrameworkCore into bugfix/seed-data-non-writable-insert-batching
@crowet Thanks for your contribution! |
Please check if the PR fulfills these requirements
Regression from pull request Seed Data: Exclude concurrency token from Data Operations #13510
Fix migration scripts when seed data has non-writable columns (i.e. rowversion)
Prior to regression, migration scripts would insert seed data in batching.
This fix restores behavior.
https://github.com/aspnet/AspNetCore/wiki/Engineering-guidelines
Review the guidelines for CONTRIBUTING.md for more details.