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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework