Compartir a través de


RelationalForeignKeyExtensions.SetConstraintName Método

Definición

Sobrecargas

SetConstraintName(IMutableForeignKey, String)

Establece el nombre de la restricción de clave externa.

SetConstraintName(IConventionForeignKey, String, Boolean)

Establece el nombre de la restricción de clave externa.

SetConstraintName(IMutableForeignKey, String)

Establece el nombre de la restricción de clave externa.

public static void SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, string value);
public static void SetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, string? value);
static member SetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * string -> unit
<Extension()>
Public Sub SetConstraintName (foreignKey As IMutableForeignKey, value As String)

Parámetros

foreignKey
IMutableForeignKey

Clave externa.

value
String

Valor que se va a establecer.

Se aplica a

SetConstraintName(IConventionForeignKey, String, Boolean)

Establece el nombre de la restricción de clave externa.

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

Parámetros

foreignKey
IConventionForeignKey

Clave externa.

value
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