public IngredientCollection FetchByQuery(Query qry) { IngredientCollection coll = new IngredientCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public IngredientCollection FetchAll() { IngredientCollection coll = new IngredientCollection(); Query qry = new Query(Ingredient.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }