Example #1
0
 protected SensorReadout(DateTime time, Car car, String description)
 {
     this._time        = time;
     this._car         = car;
     this._description = description;
     this._next        = null;
 }
Example #2
0
 protected SensorReadout(DateTime time, Car car, String description)
 {
     this._time = time;
     this._car = car;
     this._description = description;
     this._next = null;
 }
Example #3
0
File: Car.cs Project: erdincay/db4o
    private void AppendToHistory(SensorReadout readout) 
    {
		Activate(ActivationPurpose.Write);
        if(_history==null) 
        {
            _history=readout;
        }
        else 
        {
            _history.Append(readout);
        }
    }
Example #4
0
 private void AppendToHistory(SensorReadout readout)
 {
     Activate(ActivationPurpose.Write);
     if (_history == null)
     {
         _history = readout;
     }
     else
     {
         _history.Append(readout);
     }
 }
Example #5
0
 public void Append(SensorReadout readout)
 {
     Activate(ActivationPurpose.Write);
     if (_next == null)
     {
         _next = readout;
     }
     else
     {
         _next.Append(readout);
     }
 }
Example #6
0
 public void Append(SensorReadout readout)
 {
     Activate(ActivationPurpose.Write);
     if (_next == null)
     {
         _next = readout;
     }
     else
     {
         _next.Append(readout);
     }
 }
        public static void ReadSnapshotHistory()
        {
            IEmbeddedConfiguration config = Db4oEmbedded.NewConfiguration();

            config.Common.Add(new TransparentPersistenceSupport());
            using (IObjectContainer db = Db4oEmbedded.OpenFile(config, YapFileName))
            {
                System.Console.WriteLine("Read all modified sensors:");
                IObjectSet    result  = db.QueryByExample(typeof(Car));
                Car           car     = (Car)result.Next();
                SensorReadout readout = car.History;
                while (readout != null)
                {
                    System.Console.WriteLine(readout);
                    readout = readout.Next;
                }
            }
        }
Example #8
0
File: Car.cs Project: erdincay/db4o
 public Car(String model) 
 {
     this._model=model;
     this._history=null;
 }
Example #9
0
 public Car(String model)
 {
     this._model   = model;
     this._history = null;
 }