Share via


RelationalPropertyExtensions.GetDefaultValue 方法

定义

重载

GetDefaultValue(IProperty)

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

GetDefaultValue(IReadOnlyProperty)

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

GetDefaultValue(IProperty, StoreObjectIdentifier)

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

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

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

GetDefaultValue(IProperty)

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

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

参数

property
IProperty

属性。

返回

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

适用于

GetDefaultValue(IReadOnlyProperty)

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

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

参数

property
IReadOnlyProperty

属性。

返回

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

适用于

GetDefaultValue(IProperty, StoreObjectIdentifier)

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

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

参数

property
IProperty

属性。

storeObject
StoreObjectIdentifier

包含列的类似表的存储对象的标识符。

返回

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

适用于

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

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

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

参数

property
IReadOnlyProperty

属性。

storeObject
StoreObjectIdentifier

包含列的类似表的存储对象的标识符。

返回

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

适用于