RelationalForeignKeyExtensions.SetConstraintName Método

Definição

Sobrecargas

SetConstraintName(IMutableForeignKey, String)

Define o nome da restrição de chave estrangeira.

SetConstraintName(IConventionForeignKey, String, Boolean)

Define o nome da restrição de chave estrangeira.

SetConstraintName(IMutableForeignKey, String)

Define o nome da restrição de chave estrangeira.

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

A chave estrangeira.

value
String

O valor a ser definido.

Aplica-se a

SetConstraintName(IConventionForeignKey, String, Boolean)

Define o nome da restrição de chave estrangeira.

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

A chave estrangeira.

value
String

O valor a ser definido.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O nome configurado.

Aplica-se a