Dela via


SqlServerModelExtensions.GetValueGenerationStrategy Method

Definition

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)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

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)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

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