Partager via


RelationalForeignKeyExtensions.SetConstraintName Méthode

Définition

Surcharges

SetConstraintName(IMutableForeignKey, String)

Définit le nom de la contrainte de clé étrangère.

SetConstraintName(IConventionForeignKey, String, Boolean)

Définit le nom de la contrainte de clé étrangère.

SetConstraintName(IMutableForeignKey, String)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

Définit le nom de la contrainte de clé étrangère.

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)

Paramètres

foreignKey
IMutableForeignKey

Clé étrangère.

value
String

Valeur à définir.

S’applique à

SetConstraintName(IConventionForeignKey, String, Boolean)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

Définit le nom de la contrainte de clé étrangère.

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

Paramètres

foreignKey
IConventionForeignKey

Clé étrangère.

value
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 à