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
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: