Esempio n. 1
0
        public static List <PackShipment> All()
        {
            BestradeContext     btContext    = new BestradeContext();
            List <PackShipment> packShipment = btContext.PackShipment.ToList();

            return(packShipment);
        }
Esempio n. 2
0
        public static PackShipment Single(string purchase, string sku, string shipment)
        {
            BestradeContext btContext    = new BestradeContext();
            PackShipment    packShipment = btContext.PackShipment.SingleOrDefault(p => p.purchase == purchase && p.sku == sku && p.shipment == shipment);

            return(packShipment);
        }
Esempio n. 3
0
        public static List <Mod> All()
        {
            BestradeContext btContext = new BestradeContext();
            List <Mod>      mods      = btContext.Mods.ToList();

            return(mods);
        }
Esempio n. 4
0
        public static Mod Single(string mod_num)
        {
            BestradeContext btContext = new BestradeContext();
            Mod             mod       = btContext.Mods.SingleOrDefault(m => m.mod_num == mod_num);

            return(mod);
        }
Esempio n. 5
0
        public static Purchase Single(string Purchase)
        {
            BestradeContext btContext = new BestradeContext();
            Purchase        purchase  = btContext.Purchases.SingleOrDefault(p => p.purchase == Purchase);

            return(purchase);
        }
Esempio n. 6
0
        public static List <FBA> All()
        {
            BestradeContext btContext = new BestradeContext();
            List <FBA>      fba       = btContext.FBA.ToList();

            return(fba);
        }
Esempio n. 7
0
        public static List <Purchase> All()
        {
            BestradeContext btContext = new BestradeContext();
            List <Purchase> purchases = btContext.Purchases.ToList();

            return(purchases);
        }
Esempio n. 8
0
        public static FBA Single(string sku)
        {
            BestradeContext btContext = new BestradeContext();
            FBA             fba       = btContext.FBA.SingleOrDefault(f => f.sku == sku);

            return(fba);
        }
Esempio n. 9
0
        public static Pack Single(string purchase, string sku)
        {
            BestradeContext btContext = new BestradeContext();
            Pack            pack      = btContext.Packs.SingleOrDefault(p => p.sku == sku && p.purchase == purchase);

            return(pack);
        }
Esempio n. 10
0
        public static List <Pack> All()
        {
            BestradeContext btContext = new BestradeContext();
            List <Pack>     packs     = btContext.Packs.ToList();

            return(packs);
        }
Esempio n. 11
0
        public static Shipment Single(string Shipment)
        {
            BestradeContext btContext = new BestradeContext();
            Shipment        shipment  = btContext.Shipments.SingleOrDefault(p => p.shipment == Shipment);

            return(shipment);
        }
Esempio n. 12
0
        public static List <Shipment> All()
        {
            BestradeContext btContext = new BestradeContext();
            List <Shipment> shipments = btContext.Shipments.ToList();

            return(shipments);
        }
Esempio n. 13
0
        public static List <Overview> All()
        {
            BestradeContext btContext = new BestradeContext();

            return(btContext.Database.SqlQuery <Overview>("SELECT * FROM Overview").ToList());
        }
Esempio n. 14
0
        public static List <PackPurchaseView> All()
        {
            BestradeContext btContext = new BestradeContext();

            return(btContext.Database.SqlQuery <PackPurchaseView>("SELECT * FROM PackPurchaseView ORDER BY date DESC").ToList());
        }
Esempio n. 15
0
        public static List <PackShipmentView> view()
        {
            BestradeContext btContext = new BestradeContext();

            return(btContext.Database.SqlQuery <PackShipmentView>("SELECT * FROM PackShipmentView WHERE p_qty > s_qty").ToList());
        }