Table of Contents

Class MongoRelationshipDiscoveryConvention

Namespace
MongoDB.EntityFrameworkCore.Metadata.Conventions
Assembly
MongoDB.EntityFrameworkCore.dll

A convention that ensures embedded objects are correctly configured as owned entities.

public class MongoRelationshipDiscoveryConvention : RelationshipDiscoveryConvention, ITypeIgnoredConvention, IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeMemberIgnoredConvention, INavigationRemovedConvention, INavigationAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyNullNavigationSetConvention, IForeignKeyRemovedConvention, IConvention
Inheritance
MongoRelationshipDiscoveryConvention
Implements
Inherited Members

Constructors

MongoRelationshipDiscoveryConvention(ProviderConventionSetBuilderDependencies)

Creates a MongoRelationshipDiscoveryConvention.

Methods

ShouldBeOwned(Type, IConventionModel)

Returns a value indicating whether the given entity type should be added as owned if it isn't currently in the model.

ShouldBeOwnedType(Type, IConventionModel)

Determine if a given entity type should be added as an owned entity if not already in the model.