RelationalIndexExtensions.SetName 方法

定义

重载

SetName(IMutableIndex, String)
已过时.

设置数据库中索引的名称。

SetName(IConventionIndex, String, Boolean)
已过时.

设置数据库中索引的名称。

SetName(IMutableIndex, String)

Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs

注意

Use SetDatabaseName() instead.

设置数据库中索引的名称。

public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? name);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
[<System.Obsolete("Use SetDatabaseName() instead.")>]
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
<Extension()>
Public Sub SetName (index As IMutableIndex, name As String)

参数

index
IMutableIndex

索引。

name
String

要设置的值。

属性

适用于

SetName(IConventionIndex, String, Boolean)

Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs

注意

Use SetDatabaseName() instead.

设置数据库中索引的名称。

public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string? name, bool fromDataAnnotation = false);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> unit
[<System.Obsolete("Use SetDatabaseName() instead.")>]
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> unit
<Extension()>
Public Sub SetName (index As IConventionIndex, name As String, Optional fromDataAnnotation As Boolean = false)

参数

index
IConventionIndex

索引。

name
String

要设置的值。

fromDataAnnotation
Boolean

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

属性

适用于