Documentation modifications
This commit is contained in:
@@ -15,6 +15,10 @@ namespace adas_core.Infrastructure.Utils.MongoMaps;
|
||||
/// </summary>
|
||||
public class BoxConfigMapContributor : IEntityMapContributor
|
||||
{
|
||||
/// <summary>
|
||||
/// Registers the BSON class maps used to control how <see cref="Box"/> and <see cref="Sensor"/> instances are serialized to and from MongoDB. Each registration is only performed when no class map is already registered for the target type, and the mappings exclude properties that should not be persisted, rename persisted members where needed, apply <see cref="DictionaryBsonConverter"/> to the <c>Configuration</c> member of <see cref="Box"/>, and configure null/default-value handling for <see cref="Sensor"/> members.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d4dea7a body=eb04ab5 -->
|
||||
public void RegisterMaps()
|
||||
{
|
||||
if (!BsonClassMap.IsClassMapRegistered(typeof(Box)))
|
||||
|
||||
@@ -13,6 +13,10 @@ namespace adas_core.Infrastructure.Utils.MongoMaps
|
||||
/// </summary>
|
||||
public class PumpMapContributor : IEntityMapContributor
|
||||
{
|
||||
/// <summary>
|
||||
/// Registers BSON class maps for the pump-related domain models (<see cref="CommonPumpTypes.PumpValue"/>, <see cref="CommonPumpTypes.SyringeDetails"/>, <see cref="PumpObservation"/>, <see cref="PumpState"/>, <see cref="PumpAlarmEvent"/>, <see cref="PumpAlarmState"/>, <see cref="ConfigPumps"/>, and <see cref="ConfigPumpItem"/>) used by the MongoDB driver. Each map is registered only when no prior registration exists for the type, optional members are configured to be ignored when null, enum properties are serialized as strings, and the <c>Id</c> member is mapped to the <c>_id</c> element where applicable.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d4dea7a body=345f688 -->
|
||||
public void RegisterMaps()
|
||||
{
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user