IConventionEntityType.SetBaseType(IConventionEntityType, Boolean) Method

Definition

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

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

Parameters

entityType
IConventionEntityType

The base entity type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The new base type.

Applies to