CosmosManyToManyJoinEntityTypeConvention Class

Definition

A convention that creates a join entity type for a many-to-many relationship and adds a partition key to it if the related types share one.

public class CosmosManyToManyJoinEntityTypeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ManyToManyJoinEntityTypeConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention
type CosmosManyToManyJoinEntityTypeConvention = class
    inherit ManyToManyJoinEntityTypeConvention
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
Public Class CosmosManyToManyJoinEntityTypeConvention
Inherits ManyToManyJoinEntityTypeConvention
Implements IEntityTypeAnnotationChangedConvention
Inheritance
CosmosManyToManyJoinEntityTypeConvention
Implements

Remarks

See Model building conventions, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Constructors

CosmosManyToManyJoinEntityTypeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of CosmosManyToManyJoinEntityTypeConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from ManyToManyJoinEntityTypeConvention)

Methods

CreateJoinEntityType(String, IConventionSkipNavigation)

Create a join entity type and configures the corresponding foreign keys.

CreateSkipNavigationForeignKey(IConventionSkipNavigation, IConventionEntityTypeBuilder)

Creates a foreign key on the given entity type to be used by the given skip navigation.

(Inherited from ManyToManyJoinEntityTypeConvention)
GenerateJoinTypeName(IConventionSkipNavigation)

Generates a unique name for the new joint entity type.

(Inherited from ManyToManyJoinEntityTypeConvention)
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Called after an annotation is changed on an entity type.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Called after a skip navigation is added to the entity type.

(Inherited from ManyToManyJoinEntityTypeConvention)
ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>) System.Object.ProcessSkipNavigationForeignKeyChanged(Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder,Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey,Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey,Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext{Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey})
ProcessSkipNavigationInverseChanged(IConventionSkipNavigationBuilder, IConventionSkipNavigation, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Called after a skip navigation inverse is changed.

(Inherited from ManyToManyJoinEntityTypeConvention)
ProcessSkipNavigationRemoved(IConventionEntityTypeBuilder, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Called after a skip navigation is removed from the entity type.

(Inherited from ManyToManyJoinEntityTypeConvention)
ShouldCreateJoinType(IConventionSkipNavigation)

Checks whether a new join entity type is needed.

(Inherited from ManyToManyJoinEntityTypeConvention)

Applies to