Table of Contents

Class DeviceMapContributor

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

Represents a contributor that provides device-related mapping logic for entities. Implements the IEntityMapContributor interface to participate in the entity mapping process.

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

Methods

RegisterMaps()

Registers BSON class maps for DeviceActionType, DeviceAction, DeviceSettings, and Device types used in MongoDB serialization.

public void RegisterMaps()

Remarks

Each map is only registered if no class map is already registered for the type. The registration applies auto-mapping and customizes serialization for enum members (stored as strings), applies default values for required properties, and configures nullable members to be ignored when null.