A wrapper object used for easy insertion to and retrieval from a MongoDB database.
Beispiel #1
0
 /// <summary>
 /// Stores a collection of measurements in the MongoDB database.
 /// </summary>
 /// <param name="measurements">The measurements to be stored in the MongoDB database.</param>
 protected override void ProcessMeasurements(IMeasurement[] measurements)
 {
     if ((object)measurements != null)
     {
         foreach (IMeasurement measurement in measurements)
         {
             MeasurementWrapper wrapper = new MeasurementWrapper(measurement);
             m_measurementCollection.Insert(wrapper);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// Stores a collection of measurements in the MongoDB database.
 /// </summary>
 /// <param name="measurements">The measurements to be stored in the MongoDB database.</param>
 protected override void ProcessMeasurements(IMeasurement[] measurements)
 {
     if ((object)measurements != null)
     {
         foreach (IMeasurement measurement in measurements)
         {
             MeasurementWrapper wrapper = new MeasurementWrapper(measurement);
             m_measurementCollection.Insert(wrapper);
         }
     }
 }