public OrdersProxyStub Orders_QueryForEntity(string serializedQuery) { OrdersQuery query = OrdersQuery.SerializeHelper.FromXml( serializedQuery, typeof(OrdersQuery), AllKnownTypes) as OrdersQuery; Orders obj = new Orders(); if (obj.Load(query)) { return obj; } return null; }
public OrdersProxyStub Orders_GetByPrimaryKey(System.Int32 orderID) { Orders obj = new Orders(); if (obj.LoadByPrimaryKey(orderID)) { return obj; } return null; }
public jsResponse<OrdersCollection, Orders> Orders_LoadByPrimaryKey(System.Int32 orderID) { jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>(); try { Orders entity = new Orders(); if (entity.LoadByPrimaryKey(orderID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<OrdersCollection, Orders> Orders_Save(Orders entity) { jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<EmployeesCollection, Employees> Orders_UpToEmployeesByEmployeeID(System.Int32 orderID) { jsResponse<EmployeesCollection, Employees> response = new jsResponse<EmployeesCollection, Employees>(); try { Orders entity = new Orders(); entity.OrderID = orderID; response.entity = entity.UpToEmployeesByEmployeeID; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<ShippersCollection, Shippers> Orders_UpToShippersByShipVia(System.Int32 orderID) { jsResponse<ShippersCollection, Shippers> response = new jsResponse<ShippersCollection, Shippers>(); try { Orders entity = new Orders(); entity.OrderID = orderID; response.entity = entity.UpToShippersByShipVia; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<ProductsCollection, Products> Orders_UpToProductsCollection(System.Int32 orderID) { jsResponse<ProductsCollection, Products> response = new jsResponse<ProductsCollection, Products>(); try { Orders entity = new Orders(); entity.OrderID = orderID; response.collection = entity.UpToProductsCollection; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<OrderDetailsCollection, OrderDetails> Orders_OrderDetailsCollectionByOrderID(System.Int32 orderID) { jsResponse<OrderDetailsCollection, OrderDetails> response = new jsResponse<OrderDetailsCollection, OrderDetails>(); try { Orders entity = new Orders(); entity.OrderID = orderID; response.collection = entity.OrderDetailsCollectionByOrderID; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void DeleteOrders(BusinessObjects.Orders obj) { BusinessObjects.Orders.Delete(obj.OrderID.Value); }
public void UpdateOrders(BusinessObjects.Orders obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public void InsertOrders(BusinessObjects.Orders obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }
public OrdersProxyStub(Orders obj, bool dirtyColumnsOnly) { theEntity = this.entity = obj; this.dirtyColumnsOnly = dirtyColumnsOnly; }
public OrdersProxyStub(Orders obj) { theEntity = this.entity = obj; }