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

适用于