Compartir a través de


RelationalKeyExtensions.SetName Método

Definición

Sobrecargas

SetName(IMutableKey, String)

Establece el nombre de la restricción de clave para esta clave.

SetName(IConventionKey, String, Boolean)

Establece el nombre de la restricción de clave para esta clave.

SetName(IMutableKey, String)

Establece el nombre de la restricción de clave para esta clave.

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)

Parámetros

key
IMutableKey

Clave.

name
String

Valor que se va a establecer.

Se aplica a

SetName(IConventionKey, String, Boolean)

Establece el nombre de la restricción de clave para esta clave.

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

Parámetros

key
IConventionKey

Clave.

name
String

Valor que se va a establecer.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

Nombre configurado.

Se aplica a