RelationalForeignKeyExtensions.GetConstraintName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
主體存放區物件的識別碼。
傳回
外鍵條件約束名稱。