RelationalModelValidator.GetDefaultColumnValue 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework