Condividi tramite


IConventionEntityType.HasBaseType(IConventionEntityType, Boolean) Metodo

Definizione

Attenzione

Use SetBaseType

Imposta il tipo di base del tipo di entità. Restituisce null se non si tratta di un tipo derivato in una gerarchia di ereditarietà.

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)

Parametri

entityType
IConventionEntityType

Tipo di entità di base.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Attributi

Si applica a