DerivedTypeDiscoveryConvention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: