internal static void RemoveOrderProducts(OrderProducts op, P0Context DB)
 {
     DB.OrderProducts.Remove(op);
     DB.SaveChanges();
 }
예제 #2
0
 internal static void RemoveUserAccount(UserAccount user, P0Context DB)
 {
     DB.UserAccounts.Remove(user);
     DB.SaveChanges();
 }
예제 #3
0
 internal static void UpdateOrders(Order o, P0Context DB)
 {
     DB.Orders.Update(o);
     DB.SaveChanges();
 }
예제 #4
0
 internal static void UpdateDefaultLocation(DefaultLocation dl, P0Context DB)
 {
     DB.DefaultLocations.Update(dl);
     DB.SaveChanges();
 }
예제 #5
0
 public static void AddUserAccount(UserAccount user, P0Context DB)
 {
     DB.UserAccounts.Add(user);
     DB.SaveChanges();
 }
예제 #6
0
 internal static void AddProduct(Product p, P0Context DB)
 {
     DB.Products.Add(p);
     DB.SaveChanges();
 }
예제 #7
0
 internal static void RemoveProduct(Product p, P0Context DB)
 {
     DB.Products.Remove(p);
     DB.SaveChanges();
 }
예제 #8
0
 internal static void AddLocationProducts(LocationProducts lp, P0Context DB)
 {
     DB.LocationProducts.Add(lp);
     DB.SaveChanges();
     Thread.Sleep(500);
 }
예제 #9
0
 internal static void UpdateLocationProducts(LocationProducts lp, P0Context DB)
 {
     DB.LocationProducts.Update(lp);
     DB.SaveChanges();
 }
 internal static void AddCustomerShipping(CustomerShipping cs, P0Context DB)
 {
     DB.CustomersShipping.Add(cs);
     DB.SaveChanges();
 }
 internal static void RemoveCustomersShipping(CustomerShipping cs, P0Context DB)
 {
     DB.CustomersShipping.Remove(cs);
     DB.SaveChanges();
 }
예제 #12
0
 internal static void RemoveBilling(Billing b, P0Context DB)
 {
     DB.BillingInformation.Remove(b);
     DB.SaveChanges();
 }
예제 #13
0
 internal static void UpdateBilling(Billing b, P0Context DB)
 {
     DB.BillingInformation.Update(b);
     DB.SaveChanges();
 }
예제 #14
0
 internal static void AddBilling(Billing b, P0Context DB)
 {
     DB.BillingInformation.Add(b);
     DB.SaveChanges();
 }
예제 #15
0
 internal static void UpdateLocation(Location l, P0Context DB)
 {
     DB.Locations.Update(l);
     DB.SaveChanges();
 }
예제 #16
0
 internal static void RemoveLocationProducts(LocationProducts lp, P0Context DB)
 {
     DB.LocationProducts.Remove(lp);
     DB.SaveChanges();
 }
예제 #17
0
 internal static void RemoveLocation(Location l, P0Context DB)
 {
     DB.Locations.Remove(l);
     DB.SaveChanges();
 }
 internal static void AddCustomerBilling(CustomerBilling cb, P0Context DB)
 {
     DB.CustomersBilling.Add(cb);
     DB.SaveChanges();
 }
예제 #19
0
 internal static void UpdateProduct(Product p, P0Context DB)
 {
     DB.Products.Update(p);
     DB.SaveChanges();
 }
 internal static void RemoveCustomerBilling(CustomerBilling cb, P0Context DB)
 {
     DB.CustomersBilling.Remove(cb);
     DB.SaveChanges();
 }
예제 #21
0
 internal static void AddDefaultLocation(DefaultLocation dl, P0Context DB)
 {
     DB.DefaultLocations.Add(dl);
     DB.SaveChanges();
 }
예제 #22
0
 public static void AddCustomer(Customer c, P0Context DB)
 {
     DB.Customers.Add(c);
     DB.SaveChanges();
 }
예제 #23
0
 internal static void RemoveDefaultLocation(DefaultLocation dl, P0Context DB)
 {
     DB.DefaultLocations.Remove(dl);
     DB.SaveChanges();
 }
예제 #24
0
 internal static void UpdateCustomer(Customer c, P0Context DB)
 {
     DB.Customers.Update(c);
     DB.SaveChanges();
 }
예제 #25
0
 internal static void UpdateUserAccount(UserAccount user, P0Context DB)
 {
     DB.UserAccounts.Update(user);
     DB.SaveChanges();
 }
예제 #26
0
 internal static void RemoveCustomer(Customer c, P0Context DB)
 {
     DB.Customers.Remove(c);
     DB.SaveChanges();
 }
예제 #27
0
 internal static void AddOrders(Order o, P0Context DB)
 {
     DB.Orders.Add(o);
     DB.SaveChanges();
 }
예제 #28
0
 internal static void AddLocation(Location l, P0Context DB)
 {
     DB.Locations.Add(l);
     DB.SaveChanges();
 }
예제 #29
0
 internal static void RemoveOrders(Order o, P0Context DB)
 {
     DB.Orders.Remove(o);
     DB.SaveChanges();
 }
 internal static void UpdateOrderProducts(OrderProducts op, P0Context DB)
 {
     DB.OrderProducts.Update(op);
     DB.SaveChanges();
 }