Compartir a través de


RelationalPropertyExtensions.SetDefaultValue Método

Definición

Sobrecargas

SetDefaultValue(IMutableProperty, Object)

Establece el objeto que se usa como valor predeterminado para la columna a la que se asigna esta propiedad.

SetDefaultValue(IConventionProperty, Object, Boolean)

Establece el objeto que se usa como valor predeterminado para la columna a la que se asigna esta propiedad.

SetDefaultValue(IMutableProperty, Object)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Establece el objeto que se usa como valor predeterminado para la columna a la que se asigna esta propiedad.

public static void SetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, object value);
public static void SetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, object? value);
static member SetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * obj -> unit
<Extension()>
Public Sub SetDefaultValue (property As IMutableProperty, value As Object)

Parámetros

property
IMutableProperty

Propiedad.

value
Object

Valor que se va a establecer.

Se aplica a

SetDefaultValue(IConventionProperty, Object, Boolean)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Establece el objeto que se usa como valor predeterminado para la columna a la que se asigna esta propiedad.

public static void SetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, object value, bool fromDataAnnotation = false);
public static object SetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, object value, bool fromDataAnnotation = false);
public static object? SetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, object? value, bool fromDataAnnotation = false);
static member SetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * obj * bool -> unit
static member SetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * obj * bool -> obj
<Extension()>
Public Sub SetDefaultValue (property As IConventionProperty, value As Object, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetDefaultValue (property As IConventionProperty, value As Object, Optional fromDataAnnotation As Boolean = false) As Object

Parámetros

property
IConventionProperty

Propiedad.

value
Object

Valor que se va a establecer.

fromDataAnnotation
Boolean

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

Devoluciones

El valor configurado.

Se aplica a