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.
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class TypeAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention where TAttribute : Attribute
[<System.Runtime.CompilerServices.Nullable(0)>]
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
- Attributes
- Implements
Remarks
See Model building conventions for more information and examples.
Constructors
| Name | Description |
|---|---|
| TypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
Creates a new instance of TypeAttributeConventionBase<TAttribute>. |
Properties
| Name | Description |
|---|---|
| Dependencies |
Dependencies for this service. |
Methods
| Name | Description |
|---|---|
| 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. |