public List <Order> GetListOrders() { List <Order> orders = nORTHWNDEntities.Orders.ToList(); nORTHWNDEntities.SaveChanges(); return(orders); }
public List <Product> GetListProducts() { List <Product> products = nORTHWNDEntities.Products.ToList(); nORTHWNDEntities.SaveChanges(); return(products); }
public List <Order_Detail> ListOrderDetail() { List <Order_Detail> order_Details = nORTHWNDEntities.Order_Details.ToList(); nORTHWNDEntities.SaveChanges(); return(order_Details); }
public List <Category> ListCategories() { List <Category> categories = nORTHWNDEntities.Categories.ToList(); nORTHWNDEntities.SaveChanges(); return(categories); }