Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
Arquivo: Car.cs Projeto: erdincay/db4o
 public Car(string model)
 {
     _model = model;
     _pilot = null;
     _history = new ArrayList();
 }
Exemplo n.º 4
0
 public Car(string model)
 {
     _model   = model;
     _pilot   = null;
     _history = new ArrayList();
 }