PropertyAttributeConventionBase<TAttribute> 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.
A base type for conventions that perform configuration based on an attribute applied to a property.
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
Public MustInherit Class PropertyAttributeConventionBase(Of TAttribute)
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
Type Parameters
- TAttribute
The attribute type to look for.
- Inheritance
-
PropertyAttributeConventionBase<TAttribute>
- Derived
- Implements
Remarks
The deriving class must implement IPropertyAddedConvention and IPropertyFieldChangedConvention to also handle complex properties.
See Model building conventions for more information and examples.
Constructors
PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
Creates a new instance of PropertyAttributeConventionBase<TAttribute>. |
Properties
Dependencies |
Dependencies for this service. |
Methods
Applies to
Entity Framework