SqlServerModelExtensions.SetSequenceSchema 方法

定义

重载

SetSequenceSchema(IMutableModel, String)

设置用于默认键值生成序列的架构。

SetSequenceSchema(IConventionModel, String, Boolean)

设置用于默认键值生成序列的架构。

SetSequenceSchema(IMutableModel, String)

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

设置用于默认键值生成序列的架构。

public static void SetSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
static member SetSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetSequenceSchema (model As IMutableModel, value As String)

参数

model
IMutableModel

模型。

value
String

要设置的值。

适用于

SetSequenceSchema(IConventionModel, String, Boolean)

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

设置用于默认键值生成序列的架构。

public static string? SetSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
static member SetSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Function SetSequenceSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String

参数

model
IConventionModel

模型。

value
String

要设置的值。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于