예제 #1
0
 static Foods()
 {
     Store = new DiskStore("data/foods.db", data =>
     {
         var food    = Food.Deserialize(data);
         Db[food.Id] = food;
     });
 }
예제 #2
0
 static Users()
 {
     Store = new DiskStore("data/users.db", data =>
     {
         var user       = User.Deserialize(data);
         Db[user.Login] = user;
     });
 }