Table of Contents

Class DisplayMapContributor

Namespace
adas_core.Infrastructure.Utils.MongoMaps
Assembly
adas-core.Infrastructure.dll

Represents a contributor responsible for providing display-related mapping logic for entities.

public class DisplayMapContributor : IEntityMapContributor
Inheritance
DisplayMapContributor
Implements
Inherited Members
Extension Methods

Remarks

Implements the IEntityMapContributor interface to participate in the entity mapping pipeline for display scenarios.

Methods

RegisterMaps()

Registers BSON class maps for display-related types (Display, DisplayNurse, StandarDisplay, SmartDisplay, PumpDisplay, DisplayConfig, and GroupedField) used for MongoDB serialization.

public void RegisterMaps()

Remarks

Configures polymorphic deserialization for DisplayConfig by declaring its known subtypes, sets custom element names for identifiers, applies default values for enum and collection members, omits null or unmapped properties, and uses string-based enum serialization where applicable. Each registration is guarded so it only occurs when the corresponding class map has not already been registered.