次の方法で共有


IModel.FindRuntimeEntityType(Type) メソッド

定義

指定されたエンティティ クラスをマップするエンティティを取得します。ここで、 クラスは実際のエンティティ型から派生したプロキシである可能性があります。 指定された null CLR 型を持つエンティティ型が見つからないか、指定された CLR 型が共有型エンティティ型で使用されている場合、またはエンティティ型に定義ナビゲーションがある場合は を返します。

public virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindRuntimeEntityType (Type type);
public virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindRuntimeEntityType (Type? type);
abstract member FindRuntimeEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.FindRuntimeEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Overridable Function FindRuntimeEntityType (type As Type) As IEntityType

パラメーター

type
Type

対応するエンティティ型を検索する型。

戻り値

エンティティの種類。何 null も見つからない場合は 。

注釈

詳細と例については、「 エンティティの型とリレーションシップのモデル化 」を参照してください。

適用対象