ModelExtensions.HasEntityTypeWithDefiningNavigation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HasEntityTypeWithDefiningNavigation(IModel, String) |
已淘汰.
取得值,指出模型是否包含具有定義導覽的對應實體類型。 |
HasEntityTypeWithDefiningNavigation(IModel, Type) |
已淘汰.
取得值,指出模型是否包含具有定義導覽的對應實體類型。 |
HasEntityTypeWithDefiningNavigation(IModel, String)
警告
Use FindEntityType(string)?.HasSharedClrType
取得值,指出模型是否包含具有定義導覽的對應實體類型。
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, name As String) As Boolean
參數
- model
- IModel
要尋找實體類型的模型。
- name
- String
用來尋找具有定義導覽之實體類型的名稱。
傳回
true
如果模型包含具有定義導覽的對應實體類型,則為 。
- 屬性
適用於
HasEntityTypeWithDefiningNavigation(IModel, Type)
警告
Use IsShared(Type)
取得值,指出模型是否包含具有定義導覽的對應實體類型。
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IsShared(Type)")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IsShared(Type)")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, type As Type) As Boolean
參數
- model
- IModel
要尋找實體類型的模型。
- type
- Type
用來尋找定義導覽之實體類型的型別。
傳回
true
如果模型包含具有定義導覽的對應實體類型,則為 。
- 屬性