共用方式為


SqlServerModelExtensions.GetValueGenerationStrategy 方法

定義

多載

GetValueGenerationStrategy(IModel)

SqlServerValueGenerationStrategy傳回 用於模型中索引鍵屬性的 ,除非屬性已明確設定策略。

GetValueGenerationStrategy(IReadOnlyModel)

SqlServerValueGenerationStrategy傳回 用於模型中索引鍵屬性的 ,除非屬性已明確設定策略。

GetValueGenerationStrategy(IModel)

SqlServerValueGenerationStrategy傳回 用於模型中索引鍵屬性的 ,除非屬性已明確設定策略。

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)

參數

model
IModel

模型本身。

傳回

預設值為 SqlServerValueGenerationStrategy

適用於

GetValueGenerationStrategy(IReadOnlyModel)

SqlServerValueGenerationStrategy傳回 用於模型中索引鍵屬性的 ,除非屬性已明確設定策略。

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)

參數

model
IReadOnlyModel

模型本身。

傳回

預設值為 SqlServerValueGenerationStrategy

適用於