RelationalForeignKeyExtensions.SetConstraintName Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
SetConstraintName(IMutableForeignKey, String) |
Imposta il nome del vincolo di chiave esterna. |
SetConstraintName(IConventionForeignKey, String, Boolean) |
Imposta il nome del vincolo di chiave esterna. |
SetConstraintName(IMutableForeignKey, String)
Imposta il nome del vincolo di chiave esterna.
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)
Parametri
- foreignKey
- IMutableForeignKey
Chiave esterna.
- value
- String
Il valore da impostare.
Si applica a
SetConstraintName(IConventionForeignKey, String, Boolean)
Imposta il nome del vincolo di chiave esterna.
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
Parametri
- foreignKey
- IConventionForeignKey
Chiave esterna.
- value
- String
Il valore da impostare.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata utilizzando un'annotazione dati.
Restituisce
Nome configurato.