RelationalPropertyExtensions.GetDefaultValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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)
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)
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
Entity Framework