RelationalForeignKeyExtensions.GetConstraintName 方法

定义

重载

GetConstraintName(IForeignKey)

返回外键约束名称。

GetConstraintName(IReadOnlyForeignKey)

返回外键约束名称。

GetConstraintName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

返回外键约束名称。

GetConstraintName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

返回外键约束名称。

GetConstraintName(IForeignKey)

返回外键约束名称。

public static string GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IForeignKey) As String

参数

foreignKey
IForeignKey

外键。

返回

外键约束名称。

适用于

GetConstraintName(IReadOnlyForeignKey)

返回外键约束名称。

public static string? GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IReadOnlyForeignKey) As String

参数

foreignKey
IReadOnlyForeignKey

外键。

返回

外键约束名称。

适用于

GetConstraintName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

返回外键约束名称。

public static string GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier principalStoreObject);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * StoreObjectIdentifier * StoreObjectIdentifier -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IForeignKey, ByRef storeObject As StoreObjectIdentifier, ByRef principalStoreObject As StoreObjectIdentifier) As String

参数

foreignKey
IForeignKey

外键。

storeObject
StoreObjectIdentifier

包含存储对象的标识符。

principalStoreObject
StoreObjectIdentifier

主体存储对象的标识符。

返回

外键约束名称。

适用于

GetConstraintName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

返回外键约束名称。

public static string? GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier principalStoreObject);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * StoreObjectIdentifier * StoreObjectIdentifier -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IReadOnlyForeignKey, ByRef storeObject As StoreObjectIdentifier, ByRef principalStoreObject As StoreObjectIdentifier) As String

参数

foreignKey
IReadOnlyForeignKey

外键。

storeObject
StoreObjectIdentifier

包含存储对象的标识符。

principalStoreObject
StoreObjectIdentifier

主体存储对象的标识符。

返回

外键约束名称。

适用于