RelationalPropertyExtensions.SetComputedColumnSql 方法

定义

重载

SetComputedColumnSql(IMutableProperty, String)

设置用作此属性映射到的列的计算值的 SQL 表达式。

SetComputedColumnSql(IConventionProperty, String, Boolean)

设置用作此属性映射到的列的计算值的 SQL 表达式。

SetComputedColumnSql(IMutableProperty, String)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置用作此属性映射到的列的计算值的 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)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置用作此属性映射到的列的计算值的 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

指示是否使用数据注释指定配置。

返回

配置的值。

适用于