OwnedTypesConvention 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.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for