SqlServerPropertyBuilderExtensions.ForSqlServerHasComputedColumnSql 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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 運算式。
傳回
同一個建構實例,這樣可以串接多個呼叫。