Lingua

RelationalPropertyExtensions.SetDefaultConstraintName Metodo

Definizione

Overload

Nome Descrizione
SetDefaultConstraintName(IMutableProperty, String)

Imposta il nome del vincolo predefinito.

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Imposta il nome del vincolo predefinito.

SetDefaultConstraintName(IMutableProperty, String)

Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs

Imposta il nome del vincolo predefinito.

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)

Parametri

property
IMutableProperty

Proprietà .

defaultConstraintName
String

Nome da utilizzare.

Si applica a

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs

Imposta il nome del vincolo predefinito.

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

Parametri

property
IConventionProperty

Proprietà .

defaultConstraintName
String

Nome da utilizzare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Valori restituiti

Si applica a