Class RelayContributor
- Namespace
- adas_core.Infrastructure.Utils.MongoMaps
- Assembly
- adas-core.Infrastructure.dll
Provides an entity map contributor that relays or forwards mapping contributions from an underlying source. Implements the IEntityMapContributor contract to participate in entity mapping workflows.
public class RelayContributor : IEntityMapContributor
- Inheritance
-
RelayContributor
- Implements
- Inherited Members
- Extension Methods
Methods
RegisterMaps()
Registers the BSON class map for the Relay type, defining how its properties are serialized and stored in MongoDB. The registration is performed only when no class map is already registered for the type, and it configures default values, string-based enum serialization, and null-ignoring behavior for optional members.
public void RegisterMaps()