SqlProviderServices.UseScopeIdentity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether to use the SCOPE_IDENTITY() function to retrieve values
generated by the database for numeric columns during an INSERT operation. The default value of
true
is recommended and can provide better performance if all numeric values are generated
using IDENTITY columns. If set to false
, an OUTPUT clause will be used instead. An OUTPUT
clause makes it possible to retrieve values generated by sequences or other means.
public static bool UseScopeIdentity { get; set; }
member this.UseScopeIdentity : bool with get, set
Public Shared Property UseScopeIdentity As Boolean
Property Value
Applies to
Entity Framework