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

Primary Keys of type String also get automatically generated Ids #1112

Closed
acolombi opened this issue Nov 13, 2018 — with docs.microsoft.com · 1 comment
Closed

Comments

Copy link

"By convention, non-composite primary keys of type short, int, long, or Guid will be setup to have values generated on add. All other properties will be setup with no value generation."

I think type String will also get a Guid automatically generated on add. I'm looking at StringValueGenerator.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ajcvickers
Copy link
Member

Starting with EF Core 3.0, strings no longer get generated values by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants