-
Type:
Task
-
Resolution: Done
-
Priority:
Unknown
-
Affects Version/s: None
-
None
-
None
-
Dotnet Drivers
-
None
-
None
-
None
-
None
-
None
-
None
By relying on the default Value Generation strategy in EF8 our numeric types were considered ValueGenerated.OnAdd when a key.
We did not provide an auto generator and so if left un-set you would get an error.
Due to changes in EF9 (either intentional or not) even setting them now throws an exception error.
We should prevent specify that number types are auto generated by default any longer to avoid this issue.
Technically this is a breaking change IF somebody had previously overrode our MongoValueGeneratorSelector directly to return a generator rather than registering it directly with the model builder but the EF team assures me this is very uncommon/irregular so we'll treat this as a regular patch release.