共用方式為


RuntimeForeignKey.IReadOnlyForeignKey.IsRequired 屬性

定義

取得值,指出是否需要主體實體。 如果 true 為 ,則相依實體必須一律指派給有效的主體實體。

bool Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey.IsRequired { [System.Diagnostics.DebuggerStepThrough] get; }
[<get: System.Diagnostics.DebuggerStepThrough>]
member this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey.IsRequired : bool
 ReadOnly Property IsRequired As Boolean Implements IReadOnlyForeignKey.IsRequired

屬性值

實作

屬性

適用於