Class U_0_1_1_UpdateDisplayConfigDriver
- Namespace
- adas_core.Infrastructure.Migrations.MongoMigrations
- Assembly
- adas-core.Infrastructure.dll
Represents a database migration responsible for updating the display configuration related to a driver in version 0.1.1.
public class U_0_1_1_UpdateDisplayConfigDriver : Migration, IMigration
- Inheritance
-
U_0_1_1_UpdateDisplayConfigDriver
- Implements
- Inherited Members
- Extension Methods
Remarks
Inherits from Migration to support schema or data changes associated with the 0.1.1 release.
Constructors
U_0_1_1_UpdateDisplayConfigDriver()
public U_0_1_1_UpdateDisplayConfigDriver()
Methods
Update()
Updates documents in the config_displays collection by mapping the _t discriminator field
to a new type field, normalizing values to DisplayNurse, StandarDisplay, or SmartDisplay
(defaulting to Unknown for any other value), removing the original _t field, and merging the
results back into the same collection while discarding documents that do not already have a match.
public override void Update()