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();
 }