Table of Contents

Class MongoModel

Namespace
eQuantic.Core.Data.MongoDb
Assembly
eQuantic.Core.Data.MongoDb.dll

The registered MongoDB mappings: which entities the model configured, their collection names, and Explain() over the driver's actual class maps. The mappings themselves live in the driver's global MongoDB.Bson.Serialization.BsonClassMap registry (annotations via conventions, fluent via MongoModelBuilder) — this model is the introspection handle, not a parallel copy.

public sealed class MongoModel
Inheritance
MongoModel
Inherited Members

Properties

EntityTypes

The entity types the model configured.

public IReadOnlyCollection<Type> EntityTypes { get; }

Property Value

IReadOnlyCollection<Type>

Methods

Explain()

Describes every mapping decision — collection, id member, element renames, exclusions and value conversions — read from the driver's class maps, the way Explain() describes a query. Read this instead of guessing what an element ended up being called.

public string Explain()

Returns

string