PropertyDiscoveryConvention Class
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.
A convention that adds properties to entity types corresponding to scalar public properties on the CLR type.
public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
type PropertyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IEntityTypeBaseTypeChangedConvention
type PropertyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IEntityTypeBaseTypeChangedConvention
interface IComplexPropertyAddedConvention
Public Class PropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Public Class PropertyDiscoveryConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
- Inheritance
-
PropertyDiscoveryConvention
- Implements
See Model building conventions for more information and examples.
Property |
Creates a new instance of PropertyDiscoveryConvention. |
Property |
Creates a new instance of PropertyDiscoveryConvention. |
Dependencies |
Dependencies for this service. |
Use |
A value indicating whether the convention will use attributes found on the members. |
Discover |
Discovers properties on the given structural type. |
Get |
Returns the CLR members from the given type that should be considered when discovering properties. |
Is |
Returns a value indicating whether the given member is a primitive property candidate. |
Process |
Called after a complex property is added to a type-like object. |
Process |
Called after an entity type is added to the model. |
Process |
Called after the base type of an entity type changes. |
Producto | Versiones |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Comentarios de Entity Framework
Entity Framework es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: