共用方式為


EntityTypeExtensions.HasDefiningNavigation(IEntityType) 方法

定義

警告

Entity types with defining navigations have been replaced by shared-type entity types

取得值,指出這個實體類型是否有定義導覽。

[System.Diagnostics.DebuggerStepThrough]
public static bool HasDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")]
public static bool HasDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[<System.Diagnostics.DebuggerStepThrough>]
static member HasDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")>]
static member HasDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
<Extension()>
Public Function HasDefiningNavigation (entityType As IEntityType) As Boolean

參數

entityType
IEntityType

實體類型。

傳回

true 如果此實體類型具有定義導覽,則為 。

屬性

適用於