Lingua

RelationalPropertyExtensions.SetDefaultValue Metodo

Definizione

Overload

Nome Descrizione
SetDefaultValue(IMutableProperty, Object)

Imposta l'oggetto utilizzato come valore predefinito per la colonna a cui viene mappata questa proprietà.

SetDefaultValue(IConventionProperty, Object, Boolean)

Imposta l'oggetto utilizzato come valore predefinito per la colonna a cui viene mappata questa proprietà.

SetDefaultValue(IMutableProperty, Object)

Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs

Imposta l'oggetto utilizzato come valore predefinito per la colonna a cui viene mappata questa proprietà.

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)

Parametri

property
IMutableProperty

Proprietà .

value
Object

Valore da impostare.

Si applica a

SetDefaultValue(IConventionProperty, Object, Boolean)

Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs
Origine:
RelationalPropertyExtensions.cs

Imposta l'oggetto utilizzato come valore predefinito per la colonna a cui viene mappata questa proprietà.

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

Parametri

property
IConventionProperty

Proprietà .

value
Object

Valore da impostare.

fromDataAnnotation
Boolean

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

Valori restituiti

Valore configurato.

Si applica a