/// <summary>
 /// Deep copies the current DojoSeminarRegistration to another instance of DojoSeminarRegistration.
 /// </summary>
 /// <param name="DojoSeminarRegistration">The DojoSeminarRegistration to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoSeminarRegistration from its children.</param>
 public void CopyTo(DojoSeminarRegistration dojoSeminarRegistration, bool isolation)
 {
     dojoSeminarRegistration.iD            = iD;
     dojoSeminarRegistration.isPlaceHolder = isPlaceHolder;
     dojoSeminarRegistration.isSynced      = isSynced;
     dojoSeminarRegistration.status        = status;
     if (parentSeminar != null)
     {
         if (isolation)
         {
             dojoSeminarRegistration.parentSeminar = parentSeminar.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistration.parentSeminar = parentSeminar.Copy(false);
         }
     }
     dojoSeminarRegistration.registrationDate = registrationDate;
     dojoSeminarRegistration.classUnits       = classUnits;
     dojoSeminarRegistration.sessionID        = sessionID;
     dojoSeminarRegistration.seminarFee       = seminarFee;
     dojoSeminarRegistration.totalFee         = totalFee;
     dojoSeminarRegistration.paymentDate      = paymentDate;
     dojoSeminarRegistration.paymentReference = paymentReference;
     dojoSeminarRegistration.paymentAmount    = paymentAmount;
     if (contact != null)
     {
         if (isolation)
         {
             dojoSeminarRegistration.contact = contact.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistration.contact = contact.Copy(false);
         }
     }
     if (invoiceLine != null)
     {
         if (isolation)
         {
             dojoSeminarRegistration.invoiceLine = invoiceLine.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistration.invoiceLine = invoiceLine.Copy(false);
         }
     }
     if (salesOrderLine != null)
     {
         if (isolation)
         {
             dojoSeminarRegistration.salesOrderLine = salesOrderLine.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistration.salesOrderLine = salesOrderLine.Copy(false);
         }
     }
     if (customer != null)
     {
         if (isolation)
         {
             dojoSeminarRegistration.customer = customer.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistration.customer = customer.Copy(false);
         }
     }
 }
示例#2
0
 /// <summary>
 /// Deep copies the current DojoClass to another instance of DojoClass.
 /// </summary>
 /// <param name="DojoClass">The DojoClass to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoClass from its children.</param>
 public void CopyTo(DojoClass dojoClass, bool isolation)
 {
     dojoClass.iD            = iD;
     dojoClass.isPlaceHolder = isPlaceHolder;
     dojoClass.isSynced      = isSynced;
     dojoClass.name          = name;
     if (instructor != null)
     {
         if (isolation)
         {
             dojoClass.instructor = instructor.NewPlaceHolder();
         }
         else
         {
             dojoClass.instructor = instructor.Copy(false);
         }
     }
     if (parentSeminar != null)
     {
         if (isolation)
         {
             dojoClass.parentSeminar = parentSeminar.NewPlaceHolder();
         }
         else
         {
             dojoClass.parentSeminar = parentSeminar.Copy(false);
         }
     }
     if (parentDefinition != null)
     {
         if (isolation)
         {
             dojoClass.parentDefinition = parentDefinition.NewPlaceHolder();
         }
         else
         {
             dojoClass.parentDefinition = parentDefinition.Copy(false);
         }
     }
     if (location != null)
     {
         if (isolation)
         {
             dojoClass.location = location.NewPlaceHolder();
         }
         else
         {
             dojoClass.location = location.Copy(false);
         }
     }
     if (accessControlGroup != null)
     {
         if (isolation)
         {
             dojoClass.accessControlGroup = accessControlGroup.NewPlaceHolder();
         }
         else
         {
             dojoClass.accessControlGroup = accessControlGroup.Copy(false);
         }
     }
     dojoClass.occupancyMax       = occupancyMax;
     dojoClass.occupancyTarget    = occupancyTarget;
     dojoClass.occupancyCurrent   = occupancyCurrent;
     dojoClass.occupancyCheckDate = occupancyCheckDate;
     dojoClass.signinStart        = signinStart;
     dojoClass.signinEnd          = signinEnd;
     dojoClass.classStart         = classStart;
     dojoClass.classEnd           = classEnd;
 }