Lenguaje

RelationalPropertyExtensions.SetDefaultConstraintName Método

Definición

Sobrecargas

Nombre Description
SetDefaultConstraintName(IMutableProperty, String)

Establece el nombre de restricción predeterminado.

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Establece el nombre de restricción predeterminado.

SetDefaultConstraintName(IMutableProperty, String)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Establece el nombre de restricción predeterminado.

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)

Parámetros

property
IMutableProperty

La propiedad.

defaultConstraintName
String

Nombre que se va a usar.

Se aplica a

SetDefaultConstraintName(IConventionProperty, String, Boolean)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Establece el nombre de restricción predeterminado.

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

Parámetros

property
IConventionProperty

La propiedad.

defaultConstraintName
String

Nombre que se va a usar.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

Se aplica a