コード例 #1
0
ファイル: OrderController.cs プロジェクト: livlign/banhbanh
        public OrderCollection FetchByQuery(Query qry)
        {
            OrderCollection coll = new OrderCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
コード例 #2
0
ファイル: OrderController.cs プロジェクト: livlign/banhbanh
        public OrderCollection FetchAll()
        {
            OrderCollection coll = new OrderCollection();
            Query           qry  = new Query(Order.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
コード例 #3
0
ファイル: OrderController.cs プロジェクト: livlign/banhbanh
        public OrderCollection FetchByID(object Id)
        {
            OrderCollection coll = new OrderCollection().Where("Id", Id).Load();

            return(coll);
        }