-
Notifications
You must be signed in to change notification settings - Fork 545
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
Guid Keys don't appear to generate migrations as expected #762
Comments
Given that there are many "options" to this might i suggest supporting something like this ..
... this would also allow the id generation to be overridden where it's declared, with that value being the default if it's not specified anyway. |
Further details on the issue ... It seems that for the same property code on different types EF generates different migration code. |
EF Team Triage: This issue is not something that our team is planning to address in the EF6.x code base. This does not mean that we would not consider a community contribution to address this issue. Moving forwards, our team will be fixing bugs, implementing small improvements, and accepting community contributions to the EF6.x code base. Larger feature work and innovation will happen in the EF Core code base (https://github.com/aspnet/EntityFramework). Closing an issue in the EF6.x project does not exclude us addressing it in EF Core. In fact, a number of popular feature requests for EF have already been implemented in EF Core (alternate keys, batching in SaveChanges, etc.). BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions. |
GIVEN
That I create a new Entity in a new model and add an entity Type as a DbSet to my context.
That this Entity type has the following primary key definition ...
WHEN
I enable migrations, and foll up with "add-migration Initial" in the PMC window.
THEN
I would expect to see in that initial migration ...
...
The assertion here fails as the generated migration code looks like ...
How can I specify this in the database generated / key attributes / fluent API to force this behaviour?
The text was updated successfully, but these errors were encountered: