RelationalPropertyExtensions.SetComputedColumnSql Methode

Definition

Überlädt

SetComputedColumnSql(IMutableProperty, String)

Legt den SQL-Ausdruck fest, der als berechneter Wert für die Spalte verwendet wird, der diese Eigenschaft zugeordnet ist.

SetComputedColumnSql(IConventionProperty, String, Boolean)

Legt den SQL-Ausdruck fest, der als berechneter Wert für die Spalte verwendet wird, der diese Eigenschaft zugeordnet ist.

SetComputedColumnSql(IMutableProperty, String)

Legt den SQL-Ausdruck fest, der als berechneter Wert für die Spalte verwendet wird, der diese Eigenschaft zugeordnet ist.

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

Parameter

property
IMutableProperty

Die Eigenschaft.

value
String

Der festzulegende Wert.

Gilt für:

SetComputedColumnSql(IConventionProperty, String, Boolean)

Legt den SQL-Ausdruck fest, der als berechneter Wert für die Spalte verwendet wird, der diese Eigenschaft zugeordnet ist.

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

Parameter

property
IConventionProperty

Die Eigenschaft.

value
String

Der festzulegende Wert.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für: