private void DeleteSelf(OrderEdit order, [Inject] DataAccess.IOrderLineItemDal dal) { using (BypassPropertyChecks) { FieldManager.UpdateChildren(this); dal.Delete(Id); Persons = DataPortal.CreateChild <OrderLinePersons>(); } }
private void Update(OrderEdit order, [Inject] DataAccess.IOrderLineItemDal dal) { using (BypassPropertyChecks) { using (BypassPropertyChecks) { dal.Update(Id, order.Id, ShipDate); } FieldManager.UpdateChildren(this); } }