IConventionEntityType.HasBaseType(IConventionEntityType, Boolean) Method

Definition

Caution

Use SetBaseType

Sets the base type of this entity type. Returns null if this is not a derived type in an inheritance hierarchy.

public void HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
[System.Obsolete("Use SetBaseType")]
public virtual void HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
[System.Obsolete("Use SetBaseType")]
public virtual void HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? entityType, bool fromDataAnnotation = false);
abstract member HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> unit
[<System.Obsolete("Use SetBaseType")>]
abstract member HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> unit
override this.HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> unit
Public Sub HasBaseType (entityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false)
Public Overridable Sub HasBaseType (entityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false)

Parameters

entityType
IConventionEntityType

The base entity type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Attributes

Applies to