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

Consider removing UseSqlServerIdentityColumn and ForSqlServerUseSequenceHiLo #8271

Closed
ajcvickers opened this issue Apr 24, 2017 · 6 comments
Closed
Labels
breaking-change closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@ajcvickers
Copy link
Member

Nobody really knows what they mean, when to use them, or where they are valid.

@ajcvickers
Copy link
Member Author

Note from triage: Consider adding strategy for column-constraint-based Sequence.

@ajcvickers
Copy link
Member Author

May be a breaking change, depending on what we do.

@ajcvickers ajcvickers removed this from the 2.0.0 milestone Jun 5, 2017
@ajcvickers
Copy link
Member Author

@divega I think we should remove these for 2.0 and then look at bringing them back, possibly with different names and/or other strategies added. Thoughts?

@ajcvickers
Copy link
Member Author

Discussed with @divega and @AndriySvyryd. We are going to make UseSqlServerIdentityColumn work for non key properties without having it trigger client side value generation at all. ForSqlServerUseSequenceHiLo will still throw for non-key columns.

Still need to sync with @bricelam on Migrations behavior.

@ajcvickers ajcvickers added this to the 2.0.0-preview2 milestone Jun 8, 2017
@ajcvickers ajcvickers assigned AndriySvyryd and unassigned ajcvickers Jun 8, 2017
AndriySvyryd added a commit that referenced this issue Jun 9, 2017
Throw for multiple columns configured as identity.

Fixes #8271
@bricelam
Copy link
Contributor

bricelam commented Jun 9, 2017

Migrations should work fine. If the annotation is on the property, it will create an IDENTITY column.

@AndriySvyryd
Copy link
Member

@bricelam That test is for the migration annotation. But now with #8795 the model identity annotation will always be translated to a migrations annotation.

@AndriySvyryd AndriySvyryd removed their assignment Jun 9, 2017
@AndriySvyryd AndriySvyryd added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jun 9, 2017
@ajcvickers ajcvickers modified the milestones: 2.0.0-preview2, 2.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

3 participants