Beispiel #1
0
 public static void StoreFirstCar(IObjectContainer db)
 {
     Car car1 = new Car("Ferrari");
     Pilot pilot1 = new Pilot("Michael Schumacher", 100);
     car1.Pilot = pilot1;
     db.Store(car1);
 }
Beispiel #2
0
 public static void StoreSecondCar(IObjectContainer db)
 {
     Pilot pilot2 = new Pilot("Rubens Barrichello", 99);
     Car car2 = new Car("BMW");
     car2.Pilot = pilot2;
     car2.Snapshot();
     car2.Snapshot();
     db.Store(car2);
 }
Beispiel #3
0
 public Car(string model)
 {
     _model = model;
     _pilot = null;
     _history = new ArrayList();
 }
Beispiel #4
0
 public Car(string model)
 {
     _model   = model;
     _pilot   = null;
     _history = new ArrayList();
 }