Пример #1
0
        public List <Order> GetListOrders()
        {
            List <Order> orders = nORTHWNDEntities.Orders.ToList();

            nORTHWNDEntities.SaveChanges();
            return(orders);
        }
Пример #2
0
        public List <Product> GetListProducts()
        {
            List <Product> products = nORTHWNDEntities.Products.ToList();

            nORTHWNDEntities.SaveChanges();
            return(products);
        }
Пример #3
0
        public List <Order_Detail> ListOrderDetail()
        {
            List <Order_Detail> order_Details = nORTHWNDEntities.Order_Details.ToList();

            nORTHWNDEntities.SaveChanges();
            return(order_Details);
        }
Пример #4
0
        public List <Category> ListCategories()
        {
            List <Category> categories = nORTHWNDEntities.Categories.ToList();

            nORTHWNDEntities.SaveChanges();

            return(categories);
        }