SqlServerModelExtensions.GetValueGenerationStrategy 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.
Overloads
GetValueGenerationStrategy(IModel) |
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set. |
GetValueGenerationStrategy(IReadOnlyModel) |
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set. |
GetValueGenerationStrategy(IModel)
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set.
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function GetValueGenerationStrategy (model As IModel) As Nullable(Of SqlServerValueGenerationStrategy)
Parameters
- model
- IModel
The model.
Returns
The default SqlServerValueGenerationStrategy.
Applies to
GetValueGenerationStrategy(IReadOnlyModel)
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set.
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel model);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function GetValueGenerationStrategy (model As IReadOnlyModel) As Nullable(Of SqlServerValueGenerationStrategy)
Parameters
- model
- IReadOnlyModel
The model.
Returns
The default SqlServerValueGenerationStrategy.
Applies to
Entity Framework