Class OwnedAttributeConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
A convention that configures the entity types that have the Microsoft.EntityFrameworkCore.OwnedAttribute as owned.
public class OwnedAttributeConvention : TypeAttributeConventionBase<OwnedAttribute>, IEntityTypeAddedConvention, IComplexPropertyAddedConvention, IConvention
- Inheritance
-
TypeAttributeConventionBase<OwnedAttribute>OwnedAttributeConvention
- Implements
- Inherited Members
Remarks
See Model building conventions for more information and examples.
Constructors
OwnedAttributeConvention(ProviderConventionSetBuilderDependencies)
Creates a new instance of OwnedAttributeConvention.
public OwnedAttributeConvention(ProviderConventionSetBuilderDependencies dependencies)
Parameters
dependencies
ProviderConventionSetBuilderDependenciesParameter object containing dependencies for this convention.
Methods
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, OwnedAttribute, IConventionContext)
protected override void ProcessComplexTypeAdded(IConventionComplexTypeBuilder complexTypeBuilder, OwnedAttribute attribute, IConventionContext context)
Parameters
complexTypeBuilder
IConventionComplexTypeBuilderattribute
OwnedAttributecontext
IConventionContext
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, OwnedAttribute, IConventionContext<IConventionEntityTypeBuilder>)
protected override void ProcessEntityTypeAdded(IConventionEntityTypeBuilder entityTypeBuilder, OwnedAttribute attribute, IConventionContext<IConventionEntityTypeBuilder> context)
Parameters
entityTypeBuilder
IConventionEntityTypeBuilderattribute
OwnedAttributecontext
IConventionContext<IConventionEntityTypeBuilder>