コード例 #1
0
		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;
		}
コード例 #2
0
		public OrdersProxyStub Orders_GetByPrimaryKey(System.Int32 orderID)
		{
			Orders obj = new Orders();
			if (obj.LoadByPrimaryKey(orderID))
			{
				return obj;
			}
			return null;
		}
コード例 #3
0
		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;
		}
コード例 #4
0
		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;
		}
コード例 #5
0
		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;		
		}
コード例 #6
0
		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;		
		}
コード例 #7
0
		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;		
		}
コード例 #8
0
		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;		
		}
コード例 #9
0
 public void DeleteOrders(BusinessObjects.Orders obj)
 {
     BusinessObjects.Orders.Delete(obj.OrderID.Value);
 }
コード例 #10
0
 public void UpdateOrders(BusinessObjects.Orders obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
コード例 #11
0
 public void InsertOrders(BusinessObjects.Orders obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }
コード例 #12
0
		public OrdersProxyStub(Orders obj, bool dirtyColumnsOnly)
		{
			theEntity = this.entity = obj;
			this.dirtyColumnsOnly = dirtyColumnsOnly;
		}
コード例 #13
0
		public OrdersProxyStub(Orders obj)
		{
			theEntity = this.entity = obj;
		}