IConventionEntityTypeBuilder.HasBaseType メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
継承階層でこのエンティティ型の基本型を設定します。
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType baseEntityType, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? baseEntityType, bool fromDataAnnotation = false);
abstract member HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasBaseType (baseEntityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
パラメーター
- baseEntityType
- IConventionEntityType
基本エンティティ型または null
基本型がないことを示す 。
- fromDataAnnotation
- Boolean
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
基本型が構成されている場合は同じビルダー インスタンス。 null
それ以外の場合は 。