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); }
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; }