IConventionEntityTypeBuilder.CanRemoveRelationship 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回值,指出是否可以從這個實體類型中移除外鍵。
public bool CanRemoveRelationship (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool fromDataAnnotation = false);
abstract member CanRemoveRelationship : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * bool -> bool
Public Function CanRemoveRelationship (foreignKey As IConventionForeignKey, Optional fromDataAnnotation As Boolean = false) As Boolean
參數
- foreignKey
- IConventionForeignKey
要移除的外鍵。
- fromDataAnnotation
- Boolean
指出是否使用資料批註來指定組態。
傳回
true
如果可以從這個實體類型中移除外鍵,則為 。