Esempio n. 1
0
 /// <summary>
 /// Deep copies the current DojoAttendanceEntry to another instance of DojoAttendanceEntry.
 /// </summary>
 /// <param name="DojoAttendanceEntry">The DojoAttendanceEntry to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoAttendanceEntry from its children.</param>
 public void CopyTo(DojoAttendanceEntry dojoAttendanceEntry, bool isolation)
 {
     dojoAttendanceEntry.iD            = iD;
     dojoAttendanceEntry.isPlaceHolder = isPlaceHolder;
     dojoAttendanceEntry.isSynced      = isSynced;
     dojoAttendanceEntry.signinTime    = signinTime;
     dojoAttendanceEntry.signoutTime   = signoutTime;
     if (_class != null)
     {
         if (isolation)
         {
             dojoAttendanceEntry._class = _class.NewPlaceHolder();
         }
         else
         {
             dojoAttendanceEntry._class = _class.Copy(false);
         }
     }
     if (member != null)
     {
         if (isolation)
         {
             dojoAttendanceEntry.member = member.NewPlaceHolder();
         }
         else
         {
             dojoAttendanceEntry.member = member.Copy(false);
         }
     }
     if (rank != null)
     {
         if (isolation)
         {
             dojoAttendanceEntry.rank = rank.NewPlaceHolder();
         }
         else
         {
             dojoAttendanceEntry.rank = rank.Copy(false);
         }
     }
 }
Esempio 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);
                }
            }
        }