RelationalKeyExtensions.SetName Metodo

Definizione

Overload

SetName(IMutableKey, String)

Imposta il nome del vincolo chiave per questa chiave.

SetName(IConventionKey, String, Boolean)

Imposta il nome del vincolo chiave per questa chiave.

SetName(IMutableKey, String)

Imposta il nome del vincolo chiave per questa chiave.

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

Parametri

key
IMutableKey

Chiave.

name
String

Il valore da impostare.

Si applica a

SetName(IConventionKey, String, Boolean)

Imposta il nome del vincolo chiave per questa chiave.

public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, string name, bool fromDataAnnotation = false);
public static string SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, string name, bool fromDataAnnotation = false);
public static string? SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key, string? name, bool fromDataAnnotation = false);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionKey * string * bool -> unit
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionKey * string * bool -> string
<Extension()>
Public Sub SetName (key As IConventionKey, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetName (key As IConventionKey, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parametri

key
IConventionKey

Chiave.

name
String

Il valore da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Nome configurato.

Si applica a