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)

Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs

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

C#
public static void SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string value);
C#
public static void SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? value);

Parameter

property
IMutableProperty

Die Eigenschaft.

value
String

Der festzulegende Wert.

Gilt für:

Entity Framework Core 9.0 und andere Versionen
Produkt Versionen
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

SetComputedColumnSql(IConventionProperty, String, Boolean)

Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs
Quelle:
RelationalPropertyExtensions.cs

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

C#
public static void SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string value, bool fromDataAnnotation = false);
C#
public static string SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string value, bool fromDataAnnotation = false);
C#
public static string? SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? value, bool fromDataAnnotation = false);

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:

Entity Framework Core 9.0 und andere Versionen
Produkt Versionen
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0