Bagikan melalui


RelationalPropertyExtensions.TryGetDefaultValue Metode

Definisi

Overload

TryGetDefaultValue(IReadOnlyProperty, Object)

Mengembalikan objek yang digunakan sebagai nilai default untuk kolom tempat properti ini dipetakan.

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

Mengembalikan objek yang digunakan sebagai nilai default untuk kolom tempat properti ini dipetakan.

TryGetDefaultValue(IReadOnlyProperty, Object)

Mengembalikan objek yang digunakan sebagai nilai default untuk kolom tempat properti ini dipetakan.

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

Parameter

property
IReadOnlyProperty

Properti .

defaultValue
Object

Nilai default, atau default CLR jika tidak ada default eksplisit yang ditetapkan.

Mengembalikan

true jika nilai default telah ditetapkan secara eksplisit; false Sebaliknya.

Berlaku untuk

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

Mengembalikan objek yang digunakan sebagai nilai default untuk kolom tempat properti ini dipetakan.

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

Parameter

property
IReadOnlyProperty

Properti .

storeObject
StoreObjectIdentifier

Pengidentifikasi objek penyimpanan seperti tabel yang berisi kolom .

defaultValue
Object

Nilai default, atau default CLR jika tidak ada default eksplisit yang ditetapkan.

Mengembalikan

true jika nilai default telah ditetapkan secara eksplisit; false Sebaliknya.

Berlaku untuk