TypeAttributeConventionBase<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 specified on a structural type.
public abstract class TypeAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention where TAttribute : Attribute
type TypeAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IEntityTypeAddedConvention
interface IConvention
Public MustInherit Class TypeAttributeConventionBase(Of TAttribute)
Implements IEntityTypeAddedConvention
Type Parameters
- TAttribute
The attribute type to look for.
- Inheritance
-
TypeAttributeConventionBase<TAttribute>
- Derived
- Implements
Remarks
See Model building conventions for more information and examples.
Constructors
TypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
Creates a new instance of TypeAttributeConventionBase<TAttribute>. |
Properties
Dependencies |
Dependencies for this service. |
Methods
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>) |
Called after a complex property is added to a type-like object. |
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext) |
Called after an complex type is added to the model if it has an attribute. |
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>) |
Called after an entity type is added to the model. |
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>) |
Called after an entity type is added to the model if it has an attribute. |
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>) |
Tries to replace the complex type with an entity type. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for