共用方式為


RelationalForeignKeyExtensions.GetConstraintName 方法

定義

多載

GetConstraintName(IForeignKey)

傳回外鍵條件約束名稱。

GetConstraintName(IReadOnlyForeignKey)

傳回外鍵條件約束名稱。

GetConstraintName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

傳回外鍵條件約束名稱。

GetConstraintName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

傳回外鍵條件約束名稱。

GetConstraintName(IForeignKey)

來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs

傳回外鍵條件約束名稱。

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)

來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs

傳回外鍵條件約束名稱。

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)

來源:
RelationalForeignKeyExtensions.cs

傳回外鍵條件約束名稱。

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)

來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs
來源:
RelationalForeignKeyExtensions.cs

傳回外鍵條件約束名稱。

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

主體存放區物件的識別碼。

傳回

外鍵條件約束名稱。

適用於