語言

RelationalPropertyExtensions.TryGetDefaultValue 方法

定義

多載

名稱 Description
TryGetDefaultValue(IReadOnlyProperty, Object)

回傳作為該屬性所映射欄位預設值的物件。

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

回傳作為該屬性所映射欄位預設值的物件。

TryGetDefaultValue(IReadOnlyProperty, Object)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

回傳作為該屬性所映射欄位預設值的物件。

public static bool TryGetDefaultValue(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, out object? defaultValue);
static member TryGetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * obj -> bool
<Extension()>
Public Function TryGetDefaultValue (property As IReadOnlyProperty, ByRef defaultValue As Object) As Boolean

參數

property
IReadOnlyProperty

屬性。

defaultValue
Object

預設值,或若未設定明確預設值則為 CLR 預設值。

傳回

true 如果預設值已被明確設定; false 否則,

適用於

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

回傳作為該屬性所映射欄位預設值的物件。

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

參數

property
IReadOnlyProperty

屬性。

storeObject
StoreObjectIdentifier

包含欄位的類表格儲存物件的識別碼。

defaultValue
Object

預設值,或若未設定明確預設值則為 CLR 預設值。

傳回

true 如果預設值已被明確設定; false 否則,

適用於