RelationalPropertyExtensions.SetComputedColumnSql 方法

定義

多載

SetComputedColumnSql(IMutableProperty, String)

設定當做這個屬性所對應資料行計算值的 SQL 運算式。

SetComputedColumnSql(IConventionProperty, String, Boolean)

設定當做這個屬性所對應資料行計算值的 SQL 運算式。

SetComputedColumnSql(IMutableProperty, String)

設定當做這個屬性所對應資料行計算值的 SQL 運算式。

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)

參數

property
IMutableProperty

屬性。

value
String

要設定的值。

適用於

SetComputedColumnSql(IConventionProperty, String, Boolean)

設定當做這個屬性所對應資料行計算值的 SQL 運算式。

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

參數

property
IConventionProperty

屬性。

value
String

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於