RelationalPropertyExtensions.GetDefaultValue 方法

定義

多載

GetDefaultValue(IProperty)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

GetDefaultValue(IReadOnlyProperty)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

GetDefaultValue(IProperty, StoreObjectIdentifier)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

GetDefaultValue(IProperty)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

public static object GetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IProperty -> obj
<Extension()>
Public Function GetDefaultValue (property As IProperty) As Object

參數

property
IProperty

屬性。

傳回

做為這個屬性所對應資料行之預設值的物件。

適用於

GetDefaultValue(IReadOnlyProperty)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

public static object? GetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> obj
<Extension()>
Public Function GetDefaultValue (property As IReadOnlyProperty) As Object

參數

property
IReadOnlyProperty

屬性。

傳回

做為這個屬性所對應資料行之預設值的物件。

適用於

GetDefaultValue(IProperty, StoreObjectIdentifier)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

public static object GetDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> obj
<Extension()>
Public Function GetDefaultValue (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As Object

參數

property
IProperty

屬性。

storeObject
StoreObjectIdentifier

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

傳回

做為這個屬性所對應資料行之預設值的物件。

適用於

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

傳回物件,這個物件會當做這個屬性所對應之資料行的預設值。

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

參數

property
IReadOnlyProperty

屬性。

storeObject
StoreObjectIdentifier

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

傳回

做為這個屬性所對應資料行之預設值的物件。

適用於