Exemplo n.º 1
0
 /// <summary>
 /// Deep copies the current DojoSeminarRegistrationOption to another instance of DojoSeminarRegistrationOption.
 /// </summary>
 /// <param name="DojoSeminarRegistrationOption">The DojoSeminarRegistrationOption to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoSeminarRegistrationOption from its children.</param>
 public void CopyTo(DojoSeminarRegistrationOption dojoSeminarRegistrationOption, bool isolation)
 {
     dojoSeminarRegistrationOption.iD            = iD;
     dojoSeminarRegistrationOption.isPlaceHolder = isPlaceHolder;
     dojoSeminarRegistrationOption.isSynced      = isSynced;
     dojoSeminarRegistrationOption.quantity      = quantity;
     dojoSeminarRegistrationOption.totalFee      = totalFee;
     dojoSeminarRegistrationOption.costPerItem   = costPerItem;
     if (parentOption != null)
     {
         if (isolation)
         {
             dojoSeminarRegistrationOption.parentOption = parentOption.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistrationOption.parentOption = parentOption.Copy(false);
         }
     }
     if (parentRegistration != null)
     {
         if (isolation)
         {
             dojoSeminarRegistrationOption.parentRegistration = parentRegistration.NewPlaceHolder();
         }
         else
         {
             dojoSeminarRegistrationOption.parentRegistration = parentRegistration.Copy(false);
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Deep copies the current DojoSeminarReservation to another instance of DojoSeminarReservation.
        /// </summary>
        /// <param name="DojoSeminarReservation">The DojoSeminarReservation to copy to.</param>
        /// <param name="isolation">Placeholders are used to isolate the DojoSeminarReservation from its children.</param>
        public void CopyTo(DojoSeminarReservation dojoSeminarReservation, bool isolation)
        {
            dojoSeminarReservation.iD                      = iD;
            dojoSeminarReservation.isPlaceHolder           = isPlaceHolder;
            dojoSeminarReservation.isSynced                = isSynced;
            dojoSeminarReservation.isBlockReservation      = isBlockReservation;
            dojoSeminarReservation.checkIn                 = checkIn;
            dojoSeminarReservation.checkOut                = checkOut;
            dojoSeminarReservation.isClassReservation      = isClassReservation;
            dojoSeminarReservation.isDefinitionReservation = isDefinitionReservation;

            if (registration != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.registration = registration.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.registration = registration.Copy(false);
                }
            }
            if (parentReservation != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.parentReservation = parentReservation.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.parentReservation = parentReservation.Copy(false);
                }
            }
            if (class1 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class1 = class1.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class1 = class1.Copy(false);
                }
            }
            if (class2 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class2 = class2.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class2 = class2.Copy(false);
                }
            }
            if (class3 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class3 = class3.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class3 = class3.Copy(false);
                }
            }
            if (class4 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class4 = class4.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class4 = class4.Copy(false);
                }
            }
            if (class5 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class5 = class5.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class5 = class5.Copy(false);
                }
            }
            if (class6 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class6 = class6.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class6 = class6.Copy(false);
                }
            }
            if (class7 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class7 = class7.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class7 = class7.Copy(false);
                }
            }
            if (class8 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class8 = class8.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class8 = class8.Copy(false);
                }
            }
            if (class9 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class9 = class9.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class9 = class9.Copy(false);
                }
            }
            if (class10 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.class10 = class10.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.class10 = class10.Copy(false);
                }
            }
            if (definition1 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.definition1 = definition1.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.definition1 = definition1.Copy(false);
                }
            }
            if (definition2 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.definition2 = definition2.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.definition2 = definition2.Copy(false);
                }
            }
            if (definition3 != null)
            {
                if (isolation)
                {
                    dojoSeminarReservation.definition3 = definition3.NewPlaceHolder();
                }
                else
                {
                    dojoSeminarReservation.definition3 = definition3.Copy(false);
                }
            }
        }