Share via


RelationalPropertyExtensions.SetDefaultValueSql Metodo

Definizione

Overload

SetDefaultValueSql(IMutableProperty, String)

Imposta l'espressione SQL usata come valore predefinito per la colonna a cui viene eseguito il mapping.

SetDefaultValueSql(IConventionProperty, String, Boolean)

Imposta l'espressione SQL usata come valore predefinito per la colonna a cui viene eseguito il mapping.

SetDefaultValueSql(IMutableProperty, String)

Imposta l'espressione SQL usata come valore predefinito per la colonna a cui viene eseguito il mapping.

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

Parametri

property
IMutableProperty

Proprietà.

value
String

Il valore da impostare.

Si applica a

SetDefaultValueSql(IConventionProperty, String, Boolean)

Imposta l'espressione SQL usata come valore predefinito per la colonna a cui viene eseguito il mapping.

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

Parametri

property
IConventionProperty

Proprietà.

value
String

Il valore da impostare.

fromDataAnnotation
Boolean

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

Restituisce

Il valore configurato.

Si applica a