We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you have a table column that is an Identity column, but not the Primary key. There needs to be a metadata ignore statement.
builder.Property(x => x.Id) .HasColumnName(@"Id") .HasColumnType("bigint") .IsRequired() .ValueGeneratedOnAdd() .UseIdentityColumn(); builder.Property(x => x.Id) .Metadata.SetAfterSaveBehavior(Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior.Ignore);
The Metadata is needed to avoid saving exceptions, if the column is not in the primary key.
It would be nice to include this in a future release.
The text was updated successfully, but these errors were encountered:
Thanks @nick5454
Sorry, something went wrong.
sjh37
No branches or pull requests
When you have a table column that is an Identity column, but not the Primary key. There needs to be a metadata ignore statement.
The Metadata is needed to avoid saving exceptions, if the column is not in the primary key.
It would be nice to include this in a future release.
The text was updated successfully, but these errors were encountered: