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

Upgrade to 9.0.0 break identity column generation #1042

Closed
sec opened this issue Apr 19, 2022 · 3 comments
Closed

Upgrade to 9.0.0 break identity column generation #1042

sec opened this issue Apr 19, 2022 · 3 comments

Comments

@sec
Copy link

sec commented Apr 19, 2022

Using 8.5.4, having class ex.:

record Record(int Id);

results in generating table as:

"Id" INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL,

However, after upgrade to 9.0.0, the same code generate:

"Id" INTEGER NOT NULL,

Is this change by purpose or does every model now need to have identity column explictly stated, ex. modelBuilder.Entity<Record>(b => { b.Property(p => p.Id).UseIdentityColumn(); }); ?

@cincuranet
Copy link
Member

This looks like a bug to me. I'll check what might be causing it.

@cincuranet
Copy link
Member

I think I found it. Can you check this build and confirm everything looks fine on your side too?

@sec
Copy link
Author

sec commented Apr 20, 2022

Works as expected "Id" INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL. Thanks.

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