RelationalModelValidator.GetDefaultColumnValue 方法

定义

返回对象,该对象用作属性映射到的列的默认值。

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

参数

property
IProperty

要获取其默认值的属性。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

用作属性映射到的列的默认值的对象。

适用于