次の方法で共有


ConventionModelExtensions.FindEntityType メソッド

定義

オーバーロード

FindEntityType(IConventionModel, Type)

指定したエンティティ クラスをマップするエンティティを取得します。 指定した名前の null エンティティ型が見つからない場合は を返します。

FindEntityType(IConventionModel, Type, String, IConventionEntityType)

ナビゲーション名と定義エンティティ型を定義する、指定された名前のエンティティ型を取得します。 一致する null エンティティ型が見つからない場合は を返します。

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 も見つからない場合は 。

適用対象