private void DeleteSelf(OrderEdit order, [Inject] DataAccess.IOrderLineItemDal dal)
 {
     using (BypassPropertyChecks)
     {
         FieldManager.UpdateChildren(this);
         dal.Delete(Id);
         Persons = DataPortal.CreateChild <OrderLinePersons>();
     }
 }
 private void Create()
 {
     using (BypassPropertyChecks)
     {
         Id      = -1;
         Persons = DataPortal.CreateChild <OrderLinePersons>();
     }
     BusinessRules.CheckRules();
 }
 private void Fetch(Csla.Data.SafeDataReader data)
 {
     using (BypassPropertyChecks)
     {
         Id = data.GetInt32("Id");
         if (!data.IsDBNull("ShipDate"))
         {
             ShipDate = data.GetDateTime("ShipDate");
         }
         Persons = DataPortal.FetchChild <OrderLinePersons>(Id);
     }
 }