SqlServerModelExtensions.SetSequenceNameSuffix 方法

定义

重载

SetSequenceNameSuffix(IMutableModel, String)

设置要追加到自动创建的序列名称的后缀。

SetSequenceNameSuffix(IConventionModel, String, Boolean)

设置要追加到自动创建的序列名称的后缀。

SetSequenceNameSuffix(IMutableModel, String)

设置要追加到自动创建的序列名称的后缀。

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

参数

model
IMutableModel

模型。

name
String

要设置的值。

适用于

SetSequenceNameSuffix(IConventionModel, String, Boolean)

设置要追加到自动创建的序列名称的后缀。

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

参数

model
IConventionModel

模型。

name
String

要设置的值。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于