# Class UnitMapContributor

Namespace
  adas_core.Infrastructure.Utils.MongoMaps

Assembly
  adas-core.Infrastructure.dll

Represents an entity mapping contributor that provides mapping configuration for units.

    public class UnitMapContributor : IEntityMapContributor

Inheritance
  object
  UnitMapContributor

Implements
  IEntityMapContributor

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Remarks

Implements IEntityMapContributor to integrate unit-specific mapping logic into the entity mapping pipeline.

## Methods

### RegisterMaps()

Registers BSON class maps for the Unit and UnitConfiguration types used in MongoDB serialization. Each registration is performed only if no class map has been previously registered for the target type, and configures field-level mappings, default values, ignored properties, and custom serializers as required by the domain model.

    public void RegisterMaps()