コード例 #1
0
        public IngredientCollection FetchByQuery(Query qry)
        {
            IngredientCollection coll = new IngredientCollection();

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

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

            return(coll);
        }