RelationalKeyExtensions.SetName Méthode

Définition

Surcharges

SetName(IMutableKey, String)

Définit le nom de la contrainte de clé pour cette clé.

SetName(IConventionKey, String, Boolean)

Définit le nom de la contrainte de clé pour cette clé.

SetName(IMutableKey, String)

Définit le nom de la contrainte de clé pour cette clé.

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)

Paramètres

key
IMutableKey

Clé.

name
String

Valeur à définir.

S’applique à

SetName(IConventionKey, String, Boolean)

Définit le nom de la contrainte de clé pour cette clé.

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

Paramètres

key
IConventionKey

Clé.

name
String

Valeur à définir.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Nom configuré.

S’applique à