Exemplo n.º 1
0
 /// <summary>
 /// Copies the properties from another GroupLocationHistoricalSchedule object to this GroupLocationHistoricalSchedule object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this GroupLocationHistoricalSchedule target, GroupLocationHistoricalSchedule source)
 {
     target.Id          = source.Id;
     target.ForeignGuid = source.ForeignGuid;
     target.ForeignKey  = source.ForeignKey;
     target.GroupLocationHistoricalId = source.GroupLocationHistoricalId;
     target.ScheduleId = source.ScheduleId;
     target.ScheduleModifiedDateTime = source.ScheduleModifiedDateTime;
     target.ScheduleName             = source.ScheduleName;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Clones this GroupLocationHistoricalSchedule object to a new GroupLocationHistoricalSchedule object
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param>
 /// <returns></returns>
 public static GroupLocationHistoricalSchedule Clone(this GroupLocationHistoricalSchedule source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as GroupLocationHistoricalSchedule);
     }
     else
     {
         var target = new GroupLocationHistoricalSchedule();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Clones this GroupLocationHistoricalSchedule object to a new GroupLocationHistoricalSchedule object with default values for the properties in the Entity and Model base classes.
        /// </summary>
        /// <param name="source">The source.</param>
        /// <returns></returns>
        public static GroupLocationHistoricalSchedule CloneWithoutIdentity(this GroupLocationHistoricalSchedule source)
        {
            var target = new GroupLocationHistoricalSchedule();

            target.CopyPropertiesFrom(source);

            target.Id          = 0;
            target.Guid        = Guid.NewGuid();
            target.ForeignKey  = null;
            target.ForeignId   = null;
            target.ForeignGuid = null;

            return(target);
        }