Exemplo n.º 1
0
 private void SampleData1()
 {
     //test objects
     bnf      = new Models.Benefit();
     fi       = new Models.FoodItem();
     ml       = new Models.Meal();
     bnf.Name = "Benefit Number 1";
     fi.Name  = "Banana";
     ml.Name  = "Food";
 }
Exemplo n.º 2
0
 private void ReturnOneRecord()
 {
     Models.FoodItem fi = new Models.FoodItem();
     fi = DataBaseTools.SearchRecords <Models.FoodItem>("FoodItem", "SavingObjectsToDatabase.Models.FoodItem", "Name", "Banana");
     lv1.Items.Add(fi.Name);
 }