예제 #1
0
 public static List <Order> returnOrders()
 {
     using (humbleEntities context = new humbleEntities())
     {
         return(context.Orders.ToList());
     }
 }
예제 #2
0
 public static List <Product> returnProducts()
 {
     using (humbleEntities context = new humbleEntities())
     {
         return(context.Products.ToList());
     }
 }
예제 #3
0
 public static List <Category> returnCategories()
 {
     using (humbleEntities context = new humbleEntities())
     {
         return(context.Categories.ToList());
     }
 }