RelationalForeignKeyExtensions.SetConstraintName Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Název | Description |
|---|---|
| SetConstraintName(IMutableForeignKey, String) |
Nastaví název omezení cizího klíče. |
| SetConstraintName(IConventionForeignKey, String, Boolean) |
Nastaví název omezení cizího klíče. |
SetConstraintName(IMutableForeignKey, String)
Nastaví název omezení cizího klíče.
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)
Parametry
- foreignKey
- IMutableForeignKey
Cizí klíč.
- value
- String
Hodnota, která se má nastavit.
Platí pro
SetConstraintName(IConventionForeignKey, String, Boolean)
Nastaví název omezení cizího klíče.
public static string? SetConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, string? value, bool fromDataAnnotation = false);
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);
static member SetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * string * bool -> string
static member SetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * string * bool -> unit
<Extension()>
Public Function SetConstraintName (foreignKey As IConventionForeignKey, value As String, Optional fromDataAnnotation As Boolean = false) As String
<Extension()>
Public Sub SetConstraintName (foreignKey As IConventionForeignKey, value As String, Optional fromDataAnnotation As Boolean = false)
Parametry
- foreignKey
- IConventionForeignKey
Cizí klíč.
- value
- String
Hodnota, která se má nastavit.
- fromDataAnnotation
- Boolean
Určuje, jestli byla konfigurace zadána pomocí datové poznámky.
Návraty
Nakonfigurovaný název.