You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a key property is configured as ValueGeneratedOnAdd without an explicit ValueGenerationStrategy, then it will fall back to the default ValueGenerationStrategy configured on the model, however it will have no effect on non-key properties, which might be confusing for users not closely familiar with these configuration options.
However it can still be a valid model if the user adds custom SQL to add a trigger or other mechanism to generate the value, therefore only a warning should be shown.
The text was updated successfully, but these errors were encountered:
AndriySvyryd
changed the title
Add a migrations warning for ValueGeneratedOnAdd for a non-key for SqlServer
Add a migrations warning for ValueGeneratedOnAdd for a non-key property for SqlServer
Dec 21, 2016
If a key property is configured as
ValueGeneratedOnAdd
without an explicitValueGenerationStrategy
, then it will fall back to the defaultValueGenerationStrategy
configured on the model, however it will have no effect on non-key properties, which might be confusing for users not closely familiar with these configuration options.However it can still be a valid model if the user adds custom SQL to add a trigger or other mechanism to generate the value, therefore only a warning should be shown.
The text was updated successfully, but these errors were encountered: