SqlServerPropertyExtensions.SetSequenceName 方法

定义

重载

SetSequenceName(IMutableProperty, String)

设置要用于键值生成序列的名称。

SetSequenceName(IConventionProperty, String, Boolean)

设置要用于键值生成序列的名称。

SetSequenceName(IMutableProperty, String)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

设置要用于键值生成序列的名称。

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

参数

property
IMutableProperty

属性。

name
String

要使用的序列名称。

适用于

SetSequenceName(IConventionProperty, String, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

设置要用于键值生成序列的名称。

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

参数

property
IConventionProperty

属性。

name
String

要使用的序列名称。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于