-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Change value generation defaults for numeric keys when using TPC #28529
Conversation
Fixes #28096 Default for relational providers is `Never` Warning is generated by default for relational providers if `OnAdd` is set SQL Server sets the default to `OnAdd` with the `Sequence` strategy
src/EFCore.Relational/Metadata/Conventions/RelationalValueGenerationConvention.cs
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Basically a copy-paste of: * dotnet/efcore#28477 * dotnet/efcore#28529 Closes of npgsql#2445
Basically a copy-paste of: * dotnet/efcore#28477 * dotnet/efcore#28529 Closes npgsql#2445
PG implementation: npgsql/efcore.pg#2456 |
Basically a copy-paste of: * dotnet/efcore#28477 * dotnet/efcore#28529 Closes #2445
Hey @ajcvickers, @roji does this one also take into account primary key that use value converters to unwrap an numeric value? (i.e. when you have a EntityId class that only wraps an int) It doesn't seems to be working for me and I have to manually opt-in. Not a big deal but it would be nice if that can be either called out on the docs or done by default. |
@ilmax Properties of types that wrap a primary key value of some other type are never marked as generated by default. |
Fixes #28096
Never
OnAdd
is setOnAdd
with theSequence
strategy