Share via


SqlServerPropertyAnnotations.GetSqlServerValueGenerationStrategy Method

Definition

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