Delen via


RelationalPropertyExtensions.GetDefaultValue Method

Definition

Overloads

GetDefaultValue(IProperty)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IReadOnlyProperty)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IProperty, StoreObjectIdentifier)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IProperty)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Returns the object that is used as the default value for the column this property is mapped to.

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

Parameters

property
IProperty

The property.

Returns

The object that is used as the default value for the column this property is mapped to.

Applies to

GetDefaultValue(IReadOnlyProperty)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Returns the object that is used as the default value for the column this property is mapped to.

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

Parameters

property
IReadOnlyProperty

The property.

Returns

The object that is used as the default value for the column this property is mapped to.

Applies to

GetDefaultValue(IProperty, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs

Returns the object that is used as the default value for the column this property is mapped to.

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

Parameters

property
IProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The object that is used as the default value for the column this property is mapped to.

Applies to

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

Returns the object that is used as the default value for the column this property is mapped to.

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

Parameters

property
IReadOnlyProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The object that is used as the default value for the column this property is mapped to.

Applies to