RelationalPropertyExtensions.GetDefaultValueSql 方法

定義

多載

GetDefaultValueSql(IProperty)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

GetDefaultValueSql(IReadOnlyProperty)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

GetDefaultValueSql(IProperty)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

public static string GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IProperty -> string
<Extension()>
Public Function GetDefaultValueSql (property As IProperty) As String

參數

property
IProperty

屬性。

傳回

做為這個屬性所對應資料行預設值的 SQL 運算式。

適用於

GetDefaultValueSql(IReadOnlyProperty)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

public static string? GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
<Extension()>
Public Function GetDefaultValueSql (property As IReadOnlyProperty) As String

參數

property
IReadOnlyProperty

屬性。

傳回

做為這個屬性所對應資料行預設值的 SQL 運算式。

適用於

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

public static string GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultValueSql (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As String

參數

property
IProperty

屬性。

storeObject
StoreObjectIdentifier

包含資料行之類似資料表的存放區物件的識別碼。

傳回

做為這個屬性所對應資料行預設值的 SQL 運算式。

適用於

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

傳回 SQL 運算式,做為此屬性所對應之資料行的預設值。

public static string? GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultValueSql (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As String

參數

property
IReadOnlyProperty

屬性。

storeObject
StoreObjectIdentifier

包含資料行之類似資料表的存放區物件的識別碼。

傳回

做為這個屬性所對應資料行預設值的 SQL 運算式。

適用於