protected SensorReadout(DateTime time, Car car, String description) { this._time = time; this._car = car; this._description = description; this._next = null; }
protected SensorReadout(DateTime time, Car car, String description) { this._time = time; this._car = car; this._description = description; this._next = null; }
public static void RetrieveSnapshotsSequentially(IObjectContainer db) { IObjectSet result = db.QueryByExample(typeof (Car)); Car car = (Car) result.Next(); SensorReadout readout = car.History; while (readout != null) { Console.WriteLine(readout); readout = readout.Next; } }
public void Append(SensorReadout readout) { Activate(ActivationPurpose.Write); if (_next == null) { _next = readout; } else { _next.Append(readout); } }
public void Append(SensorReadout readout) { Activate(ActivationPurpose.Write); if (_next == null) { _next = readout; } else { _next.Append(readout); } }
private void AppendToHistory(SensorReadout readout) { Activate(ActivationPurpose.Write); if (_history == null) { _history = readout; } else { _history.Append(readout); } }
public static void RetrieveSnapshotsSequentiallyTA() { IEmbeddedConfiguration config = Db4oEmbedded.NewConfiguration(); config.Common.Add(new TransparentActivationSupport()); using(IObjectContainer db = Db4oEmbedded.OpenFile(config, YapFileName)) { IObjectSet result = db.QueryByExample(typeof(Car)); Car car = (Car)result.Next(); SensorReadout readout = car.History; while (readout != null) { Console.WriteLine(readout); readout = readout.Next; } } }
private void AppendToHistory(SensorReadout readout) { Activate(ActivationPurpose.Write); if(_history==null) { _history=readout; } else { _history.Append(readout); } }
public Car(String model) { this._model=model; this._pilot=null; this._history=null; }
public Car(String model) { this._model = model; this._pilot = null; this._history = null; }