Share via


RelationalModelValidator.GetDefaultColumnValue Method

Definition

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

protected virtual object GetDefaultColumnValue (Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
protected virtual object? GetDefaultColumnValue (Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member GetDefaultColumnValue : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> obj
override this.GetDefaultColumnValue : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> obj
Protected Overridable Function GetDefaultColumnValue (property As IProperty, storeObject As StoreObjectIdentifier) As Object

Parameters

property
IProperty

The property to get the default value for.

storeObject
StoreObjectIdentifier

The identifier of the store object.

Returns

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

Applies to