Język

RelationalPropertyExtensions.SetDefaultConstraintName Metoda

Definicja

Przeciążenia

Nazwisko Opis
SetDefaultConstraintName(IMutableProperty, String)

Ustawia domyślną nazwę ograniczenia.

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Ustawia domyślną nazwę ograniczenia.

SetDefaultConstraintName(IMutableProperty, String)

Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs

Ustawia domyślną nazwę ograniczenia.

public static void SetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? defaultConstraintName);
static member SetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetDefaultConstraintName (property As IMutableProperty, defaultConstraintName As String)

Parametry

property
IMutableProperty

Właściwość.

defaultConstraintName
String

Nazwa, która ma być używana.

Dotyczy

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs

Ustawia domyślną nazwę ograniczenia.

public static string? SetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? defaultConstraintName, bool fromDataAnnotation = false);
static member SetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetDefaultConstraintName (property As IConventionProperty, defaultConstraintName As String, Optional fromDataAnnotation As Boolean = false) As String

Parametry

property
IConventionProperty

Właściwość.

defaultConstraintName
String

Nazwa, która ma być używana.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Dotyczy