public static void StoreCarAndSnapshots(IObjectContainer db)
 {
     Pilot pilot = new Pilot("Kimi Raikkonen", 110);
     Car car = new Car("Ferrari");
     car.Pilot = pilot;
     for (int i = 0; i < 5; i++)
     {
         car.snapshot();
     }
     db.Store(car);
 }
Example #2
0
 public Car(String model) 
 {
     this._model=model;
     this._pilot=null;
     this._history=null;
 }
Example #3
0
 public Car(String model)
 {
     this._model   = model;
     this._pilot   = null;
     this._history = null;
 }