RelationalIndexExtensions.SetDatabaseName 方法

定義

多載

SetDatabaseName(IMutableIndex, String)

設定資料庫中索引的名稱。

SetDatabaseName(IConventionIndex, String, Boolean)

設定資料庫中索引的名稱。

SetDatabaseName(IMutableIndex, String)

設定資料庫中索引的名稱。

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

參數

index
IMutableIndex

索引。

name
String

要設定的值。

適用於

SetDatabaseName(IConventionIndex, String, Boolean)

設定資料庫中索引的名稱。

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

參數

index
IConventionIndex

索引。

name
String

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於