语言

RelationalPropertyExtensions.GetDefaultDefaultConstraintName 方法

定义

根据表和列名生成默认约束名称。

public static string GetDefaultDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultDefaultConstraintName (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As String

参数

property
IReadOnlyProperty

属性。

storeObject
StoreObjectIdentifier

要为其生成名称的存储对象标识符。

返回

适用于