IConventionEntityType.HasBaseType(IConventionEntityType, Boolean) Methode

Definition

Achtung

Use SetBaseType

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

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)

Parameter

entityType
IConventionEntityType

Der Basisentitätstyp.

fromDataAnnotation
Boolean

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

Attribute

Gilt für: