IConventionEntityType.SetBaseType(IConventionEntityType, Boolean) Methode

Definition

Legt den Basistyp dieses Entitätstyps fest. Gibt zurück null , wenn es sich nicht um einen abgeleiteten Typ in einer Vererbungshierarchie handelt.

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

Parameter

entityType
IConventionEntityType

Der Basisentitätstyp.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der neue Basistyp.

Gilt für: