Beispiel #1
0
 protected SensorReadout(DateTime time, Car car, String description)
 {
     this._time = time;
     this._car = car;
     this._description = description;
     this._next = null;
 }
 public static void StoreCarAndSnapshots()
 {
     IEmbeddedConfiguration config = Db4oEmbedded.NewConfiguration();
     config.Common.Add(new TransparentPersistenceSupport());
     using(IObjectContainer db = Db4oEmbedded.OpenFile(config, YapFileName))
     {
         Car car = new Car("Ferrari");
         for (int i = 0; i < 3; i++)
         {
             car.snapshot();
         }
         db.Store(car);
     }
 }
 public TemperatureSensorReadout(DateTime time, Car car, string description, double temperature)
     : base(time, car, description)
 {
     this._temperature = temperature;
 }