語言

SqlServerPropertyBuilderExtensions.ForSqlServerHasDefaultValue 方法

定義

多載

名稱 Description
ForSqlServerHasDefaultValue(PropertyBuilder, Object)

設定屬性對應欄位的預設值,以設定 SQL Server 為目標。

ForSqlServerHasDefaultValue<TProperty>(PropertyBuilder<TProperty>, Object)

設定屬性對應欄位的預設值,以設定 SQL Server 為目標。

ForSqlServerHasDefaultValue(PropertyBuilder, Object)

設定屬性對應欄位的預設值,以設定 SQL Server 為目標。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqlServerHasDefaultValue(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, object value);
static member ForSqlServerHasDefaultValue : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function ForSqlServerHasDefaultValue (propertyBuilder As PropertyBuilder, value As Object) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

正在配置的物業的建商。

value
Object

數據行的預設值。

傳回

同一個建構實例,這樣可以串接多個呼叫。

適用於

ForSqlServerHasDefaultValue<TProperty>(PropertyBuilder<TProperty>, Object)

設定屬性對應欄位的預設值,以設定 SQL Server 為目標。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqlServerHasDefaultValue<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, object value);
static member ForSqlServerHasDefaultValue : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function ForSqlServerHasDefaultValue(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), value As Object) As PropertyBuilder(Of TProperty)

類型參數

TProperty

配置的房產類型。

參數

propertyBuilder
PropertyBuilder<TProperty>

正在配置的物業的建商。

value
Object

數據行的預設值。

傳回

同一個建構實例,這樣可以串接多個呼叫。

適用於