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