SqlServerPropertyAnnotations.GetSqlServerValueGenerationStrategy Method
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 the SqlServerValueGenerationStrategy to use for the property.
public virtual Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? GetSqlServerValueGenerationStrategy (bool fallbackToModel);
abstract member GetSqlServerValueGenerationStrategy : bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
override this.GetSqlServerValueGenerationStrategy : bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
Public Overridable Function GetSqlServerValueGenerationStrategy (fallbackToModel As Boolean) As Nullable(Of SqlServerValueGenerationStrategy)
Parameters
- fallbackToModel
- Boolean
If true
, then if no strategy is set for the property,
then the strategy to use will be taken from the IModel.
Returns
The strategy, or null
if none was set.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework