Ejemplo n.º 1
0
 protected SensorReadout(DateTime time, Car car, string description)
 {
     _time        = time;
     _car         = car;
     _description = description;
     _next        = null;
 }
Ejemplo n.º 2
0
 protected SensorReadout(DateTime time, Car car, string description)
 {
     _time = time;
     _car = car;
     _description = description;
     _next = null;            
 }
Ejemplo n.º 3
0
 public void Append(SensorReadout sensorReadout)
 {
     if (_next == null)
     {
         _next = sensorReadout;
     }
     else
     {
         _next.Append(sensorReadout);
     }
 }
Ejemplo n.º 4
0
Archivo: Car.cs Proyecto: pondyond/db4o
 private void AppendToHistory(SensorReadout readout)
 {
     if (_history == null)
     {
         _history = readout;
     }
     else
     {
         _history.Append(readout);
     }
 }
Ejemplo n.º 5
0
 public void Append(SensorReadout sensorReadout)
 {
     if (_next == null)
     {
         _next = sensorReadout;
     }
     else
     {
         _next.Append(sensorReadout);
     }
 }
Ejemplo n.º 6
0
 private void AppendToHistory(SensorReadout readout)
 {
     if (_history == null)
     {
         _history = readout;
     }
     else
     {
         _history.Append(readout);
     }
 }
Ejemplo n.º 7
0
        public static void RetrieveSnapshotsSequentially(IObjectContainer db)
        {
            IObjectSet    result  = db.QueryByExample(typeof(Car));
            Car           car     = (Car)result.Next();
            SensorReadout readout = car.GetHistory();

            while (readout != null)
            {
                Console.WriteLine(readout);
                readout = readout.Next;
            }
        }
Ejemplo n.º 8
0
        public static void RetrieveSnapshotsSequentiallyCascade()
        {
            IEmbeddedConfiguration config = Db4oEmbedded.NewConfiguration();

            config.Common.ObjectClass(typeof(TemperatureSensorReadout))
            .CascadeOnActivate(true);
            using (IObjectContainer db = Db4oEmbedded.OpenFile(config, YapFileName))
            {
                IObjectSet    result  = db.QueryByExample(typeof(Car));
                Car           car     = (Car)result.Next();
                SensorReadout readout = car.GetHistory();
                while (readout != null)
                {
                    Console.WriteLine(readout);
                    readout = readout.Next;
                }
            }
        }
Ejemplo n.º 9
0
Archivo: Car.cs Proyecto: pondyond/db4o
 public Car(string model)
 {
     _model   = model;
     _pilot   = null;
     _history = null;
 }
Ejemplo n.º 10
0
 public Car(string model)
 {
     _model = model;
     _pilot = null;
     _history = null;
 }