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);
 }
示例#2
0
文件: Car.cs 项目: Galigator/db4o
 public Car(String model) 
 {
     this._model=model;
     this._pilot=null;
     this._history=null;
 }
示例#3
0
 public Car(String model)
 {
     this._model   = model;
     this._pilot   = null;
     this._history = null;
 }