次の方法で共有


EntityTypeExtensions.LeastDerivedType(IEntityType, IEntityType) メソッド

定義

指定した 2 つの間の最小派生型を取得します。

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType LeastDerivedType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType otherEntityType);
static member LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function LeastDerivedType (entityType As IEntityType, otherEntityType As IEntityType) As IEntityType

パラメーター

entityType
IEntityType

エンティティの型。

otherEntityType
IEntityType

比較対象のもう 1 つのエンティティ型。

戻り値

指定された 2 つの間の最小派生型。 指定されたエンティティ型が関連していない場合は、 null が返されます。

適用対象