ModelExtensions.FindEntityType メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
FindEntityType(IModel, Type) |
古い.
指定したエンティティ クラスをマップするエンティティを取得します。 指定された |
FindEntityType(IModel, Type, String, IEntityType) |
ナビゲーション名と定義エンティティ型を定義する、指定された型のエンティティ型を取得します。 一致する |
FindEntityType(IModel, Type)
注意事項
Use IReadOnlyEntityType.FindEntityType
指定したエンティティ クラスをマップするエンティティを取得します。 指定された null
CLR 型を持つエンティティ型が見つからないか、指定された CLR 型が共有型エンティティ型で使用されている場合、またはエンティティ型に定義ナビゲーションがある場合は を返します。
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyEntityType.FindEntityType")]
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IReadOnlyEntityType.FindEntityType")>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type) As IEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type) As IReadOnlyEntityType
パラメーター
- model
- IModel
エンティティ型を検索するモデル。
- type
- Type
対応するエンティティ型を検索する型。
戻り値
エンティティの種類。何 null
も見つからない場合は 。
- 属性
適用対象
FindEntityType(IModel, Type, String, IEntityType)
ナビゲーション名と定義エンティティ型を定義する、指定された型のエンティティ型を取得します。 一致する null
エンティティ型が見つからない場合は を返します。
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type, definingNavigationName As String, definingEntityType As IEntityType) As IEntityType
パラメーター
- model
- IModel
エンティティ型を検索するモデル。
- type
- Type
検索するエンティティ型の型。
- definingNavigationName
- String
検索するエンティティ型のナビゲーションを定義する 。
- definingEntityType
- IEntityType
検索するエンティティ型の定義エンティティ型。
戻り値
エンティティの種類。何 null
も見つからない場合は 。
- 属性
適用対象
Entity Framework
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示