Bagikan melalui


RelationalPropertyExtensions.SetComputedColumnSql Metode

Definisi

Overload

SetComputedColumnSql(IMutableProperty, String)

Mengatur ekspresi SQL yang digunakan sebagai nilai komputasi untuk kolom tempat properti ini dipetakan.

SetComputedColumnSql(IConventionProperty, String, Boolean)

Mengatur ekspresi SQL yang digunakan sebagai nilai komputasi untuk kolom tempat properti ini dipetakan.

SetComputedColumnSql(IMutableProperty, String)

Mengatur ekspresi SQL yang digunakan sebagai nilai komputasi untuk kolom tempat properti ini dipetakan.

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

Properti .

value
String

Nilai yang akan ditetapkan.

Berlaku untuk

SetComputedColumnSql(IConventionProperty, String, Boolean)

Mengatur ekspresi SQL yang digunakan sebagai nilai komputasi untuk kolom tempat properti ini dipetakan.

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

Properti .

value
String

Nilai yang akan ditetapkan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk