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

Differentiate between a sequence's database schema and model schema #28943

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

bricelam
Copy link
Contributor

Fixes #28223


SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);

modelBuilder.HasSequence(""EntityFrameworkHiLoSequence"", ""dbo"")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before this change, we wouldn't scaffold the schema here causing two sequences to be added to the model (the other by UseHiLo)

@AndriySvyryd
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dogahasdemir
Copy link

Hi,

Is there any update about this matter? After switching from EF Core 5.0 to EF Core 7.0, our migrations started to try drop the non existing Sequence "EntityFrameworkHiLoSequence" which is the default Sequence coming from EF Core library itself.
We do not specify anydefault schema for the model.

Thanks

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.

HiLo sequences are being dropped when specifying a default schema
3 participants