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
Our IsNewStrategy considers entities new if the Id is either null or if the Id property is primitive and its value is 0 (zero). We should omit these properties to avoid the need for either wrapper types or failures such as with SQL Server that requires identity insert to be enabled.
The text was updated successfully, but these errors were encountered:
We now exclude Id properties from being used in the INSERT field list if the Id value is zero and of a primitive type or if the value is null using a numeric wrapper type.
Our
IsNewStrategy
considers entities new if the Id is eithernull
or if the Id property is primitive and its value is0
(zero). We should omit these properties to avoid the need for either wrapper types or failures such as with SQL Server that requires identity insert to be enabled.The text was updated successfully, but these errors were encountered: