DerivedTypeDiscoveryConvention Class

Definition

Caution

This API is now deprecated.

A convention that finds derived entity types that are already part of the model based on the associated CLR type hierarchy.

public class DerivedTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
[System.Obsolete]
public class DerivedTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
type DerivedTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
[<System.Obsolete>]
type DerivedTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
Public Class DerivedTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention
Inheritance
DerivedTypeDiscoveryConvention
Attributes
Implements

Remarks

See Model building conventions for more information.

Constructors

DerivedTypeDiscoveryConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of DerivedTypeDiscoveryConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from InheritanceDiscoveryConventionBase)

Methods

FindClosestBaseType(IConventionEntityType)

Finds an entity type in the model that's associated with a CLR type that the given entity type's associated CLR type is derived from and is the closest one in the CLR hierarchy.

(Inherited from InheritanceDiscoveryConventionBase)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model.

Applies to