IConventionRelationshipBuilder.IsOwnership 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定此關聯性是否定義 (擁有權,亦即,是否一律必須透過主體實體導覽來存取相依實體) 。
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder IsOwnership (bool? ownership, bool fromDataAnnotation = false);
abstract member IsOwnership : Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder
Public Function IsOwnership (ownership As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionRelationshipBuilder
參數
- fromDataAnnotation
- Boolean
指出是否已使用資料批註指定組態。
傳回
如果已設定擁有權,則為相同的產生器實例, null
否則為 。