OwnedTypesConvention Class

Definition

Caution

Entity types with defining navigations have been replaced by shared-type entity types

A convention that configures owned entity types with defining navigation as owned entity types without defining navigation if there's only one navigation of this type.

public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
[System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")]
public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
[<System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")>]
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
Public Class OwnedTypesConvention
Implements IEntityTypeRemovedConvention
Inheritance
OwnedTypesConvention
Attributes
Implements

Remarks

See Model building conventions for more information.

Constructors

OwnedTypesConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of OwnedTypesConvention.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Called after an entity type is removed from the model.

Applies to