public OrderDetailsProxyStub OrderDetails_GetByPrimaryKey(System.Int32 orderID, System.Int32 productID)
		{
			OrderDetails obj = new OrderDetails();
			if (obj.LoadByPrimaryKey(orderID, productID))
			{
				return obj;
			}
			return null;
		}
		public jsResponse<ProductsCollection, Products> OrderDetails_UpToProductsByProductID(System.Int32 orderID, System.Int32 productID)
		{
			jsResponse<ProductsCollection, Products> response = new jsResponse<ProductsCollection, Products>();

			try
			{
				OrderDetails entity = new OrderDetails();
				entity.OrderID = orderID;
				entity.ProductID = productID;
				response.entity = entity.UpToProductsByProductID;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;		
		}
		public OrderDetailsProxyStub OrderDetails_QueryForEntity(string serializedQuery)
		{
			OrderDetailsQuery query = OrderDetailsQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(OrderDetailsQuery), AllKnownTypes) as OrderDetailsQuery;

			OrderDetails obj = new OrderDetails();
			if (obj.Load(query))
			{
				return obj;
			}

			return null;
		}
		public jsResponse<OrderDetailsCollection, OrderDetails> OrderDetails_LoadByPrimaryKey(System.Int32 orderID, System.Int32 productID)
		{
			jsResponse<OrderDetailsCollection, OrderDetails> response = new jsResponse<OrderDetailsCollection, OrderDetails>();

			try
			{
				OrderDetails entity = new OrderDetails();
				if (entity.LoadByPrimaryKey(orderID, productID))
				{
					response.entity = entity;
				}
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
		public jsResponse<OrderDetailsCollection, OrderDetails> OrderDetails_Save(OrderDetails entity)
		{
			jsResponse<OrderDetailsCollection, OrderDetails> response = new jsResponse<OrderDetailsCollection, OrderDetails>();

			try
			{
				entity.Save();
				response.entity = entity;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
Beispiel #6
0
 public void DeleteOrderDetails(BusinessObjects.OrderDetails obj)
 {
     BusinessObjects.OrderDetails.Delete(obj.OrderID.Value, obj.ProductID.Value);
 }
Beispiel #7
0
 public void UpdateOrderDetails(BusinessObjects.OrderDetails obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
Beispiel #8
0
 public void InsertOrderDetails(BusinessObjects.OrderDetails obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }
Beispiel #9
0
 public OrderDetailsProxyStub(OrderDetails obj, bool dirtyColumnsOnly)
 {
     theEntity             = this.entity = obj;
     this.dirtyColumnsOnly = dirtyColumnsOnly;
 }
Beispiel #10
0
 public OrderDetailsProxyStub(OrderDetails obj)
 {
     theEntity = this.entity = obj;
 }