Table of Contents

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

Parameter object containing dependencies for this convention.

Methods

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, OwnedAttribute, IConventionContext)

protected override void ProcessComplexTypeAdded(IConventionComplexTypeBuilder complexTypeBuilder, OwnedAttribute attribute, IConventionContext context)

Parameters

complexTypeBuilder IConventionComplexTypeBuilder
attribute OwnedAttribute
context IConventionContext

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, OwnedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

protected override void ProcessEntityTypeAdded(IConventionEntityTypeBuilder entityTypeBuilder, OwnedAttribute attribute, IConventionContext<IConventionEntityTypeBuilder> context)

Parameters

entityTypeBuilder IConventionEntityTypeBuilder
attribute OwnedAttribute
context IConventionContext<IConventionEntityTypeBuilder>