RelationalPropertyExtensions.GetDefaultConstraintName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetDefaultConstraintName(IReadOnlyProperty) |
获取默认约束名称。 |
| GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier) |
获取默认约束名称。 |
GetDefaultConstraintName(IReadOnlyProperty)
获取默认约束名称。
public static string? GetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
<Extension()>
Public Function GetDefaultConstraintName (property As IReadOnlyProperty) As String
参数
- property
- IReadOnlyProperty
属性。
返回
适用于
GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)
获取默认约束名称。
public static string? GetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultConstraintName (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As String
参数
- property
- IReadOnlyProperty
属性。
- storeObject
- StoreObjectIdentifier
要为其生成名称的存储对象标识符。