SqlServerPropertyBuilderExtensions.ForSqlServerHasComputedColumnSql 方法

定義

多載

ForSqlServerHasComputedColumnSql(PropertyBuilder, String)

設定屬性以SQL Server為目標時對應至計算資料行。

ForSqlServerHasComputedColumnSql<TProperty>(PropertyBuilder<TProperty>, String)

設定屬性以SQL Server為目標時對應至計算資料行。

ForSqlServerHasComputedColumnSql(PropertyBuilder, String)

設定屬性以SQL Server為目標時對應至計算資料行。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqlServerHasComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string sql);
static member ForSqlServerHasComputedColumnSql : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function ForSqlServerHasComputedColumnSql (propertyBuilder As PropertyBuilder, sql As String) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

要設定之屬性的產生器。

sql
String

計算資料行值的 SQL 運算式。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

ForSqlServerHasComputedColumnSql<TProperty>(PropertyBuilder<TProperty>, String)

設定屬性以SQL Server為目標時對應至計算資料行。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqlServerHasComputedColumnSql<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string sql);
static member ForSqlServerHasComputedColumnSql : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function ForSqlServerHasComputedColumnSql(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), sql As String) As PropertyBuilder(Of TProperty)

類型參數

TProperty

正在設定之屬性的型別。

參數

propertyBuilder
PropertyBuilder<TProperty>

要設定之屬性的產生器。

sql
String

計算資料行值的 SQL 運算式。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於