Share via


RelationalPropertyExtensions.TryGetDefaultValue Metodo

Definizione

Overload

TryGetDefaultValue(IReadOnlyProperty, Object)

Restituisce l'oggetto utilizzato come valore predefinito per la colonna a cui viene eseguito il mapping.

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

Restituisce l'oggetto utilizzato come valore predefinito per la colonna a cui viene eseguito il mapping.

TryGetDefaultValue(IReadOnlyProperty, Object)

Restituisce l'oggetto utilizzato come valore predefinito per la colonna a cui viene eseguito il mapping.

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

Parametri

property
IReadOnlyProperty

Proprietà.

defaultValue
Object

Valore predefinito o CLR predefinito se non è stato impostato alcun valore predefinito esplicito.

Restituisce

true se è stato impostato in modo esplicito un valore predefinito; false Altrimenti.

Si applica a

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

Restituisce l'oggetto utilizzato come valore predefinito per la colonna a cui viene eseguito il mapping.

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

Parametri

property
IReadOnlyProperty

Proprietà.

storeObject
StoreObjectIdentifier

Identificatore dell'oggetto archivio simile alla tabella contenente la colonna.

defaultValue
Object

Valore predefinito o CLR predefinito se non è stato impostato alcun valore predefinito esplicito.

Restituisce

true se è stato impostato in modo esplicito un valore predefinito; false Altrimenti.

Si applica a