コード例 #1
0
        static public void Delete(System.Int32 orderID, System.Int32 productID, esSqlAccessType sqlAccessType)
        {
            var obj = new OrderDetails();

            obj.OrderID   = orderID;
            obj.ProductID = productID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
コード例 #2
0
 public void UpdateOrderDetails(BusinessObjects.OrderDetails obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
コード例 #3
0
		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;
		}
コード例 #4
0
 public void InsertOrderDetails(BusinessObjects.OrderDetails obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }