次の方法で共有


IConventionEntityTypeBuilder.CanSetBaseType メソッド

定義

指定した型をこのエンティティ型の基本型として設定できるかどうかを示す値を返します。

public bool CanSetBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType baseEntityType, bool fromDataAnnotation = false);
public bool CanSetBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? baseEntityType, bool fromDataAnnotation = false);
abstract member CanSetBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> bool
Public Function CanSetBaseType (baseEntityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As Boolean

パラメーター

baseEntityType
IConventionEntityType

基本エンティティ型または null 基本型がないことを示す。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

true 指定された型をこのエンティティ型の基本型として設定できる場合は 。

適用対象