Example #1
0
        public IngredientCollection FetchByQuery(Query qry)
        {
            IngredientCollection coll = new IngredientCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #2
0
        public IngredientCollection FetchAll()
        {
            IngredientCollection coll = new IngredientCollection();
            Query qry = new Query(Ingredient.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #3
0
        public IngredientCollection FetchByID(object Id)
        {
            IngredientCollection coll = new IngredientCollection().Where("Id", Id).Load();

            return(coll);
        }