If I understood the tutorial correctly, my objects are stored in the .yap-File.
I tried the examples from the tutorial and stored some pilots in the Container.
Now I wrote my own ConsoleApplication and wanted to read the stored pilots from the file with:
// accessDb4o
IObjectContainer mydb = Db4oFactory.OpenFile("C:/Temp/test.yap");
try
{
// retrieveAllPilots
result = mydb.QueryByExample(typeof(Pilot));
ListResult(result);
Console.ReadLine();
}
finally
{
mydb.Close();
}
However I always get an empty output, lilke: 0 0
which absically means that thgere are no objects in the container. :(
Did I do something wrong?