Ejemplo n.º 1
0
 /// <summary>
 /// Copies the properties from another GroupSync object to this GroupSync object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this GroupSync target, GroupSync source)
 {
     target.Id = source.Id;
     target.AddUserAccountsDuringSync = source.AddUserAccountsDuringSync;
     target.ExitSystemCommunicationId = source.ExitSystemCommunicationId;
     #pragma warning disable 612, 618
     target.ExitSystemEmailId = source.ExitSystemEmailId;
     #pragma warning restore 612, 618
     target.ForeignGuid                  = source.ForeignGuid;
     target.ForeignKey                   = source.ForeignKey;
     target.GroupId                      = source.GroupId;
     target.GroupTypeRoleId              = source.GroupTypeRoleId;
     target.LastRefreshDateTime          = source.LastRefreshDateTime;
     target.ScheduleIntervalMinutes      = source.ScheduleIntervalMinutes;
     target.SyncDataViewId               = source.SyncDataViewId;
     target.WelcomeSystemCommunicationId = source.WelcomeSystemCommunicationId;
     #pragma warning disable 612, 618
     target.WelcomeSystemEmailId = source.WelcomeSystemEmailId;
     #pragma warning restore 612, 618
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Clones this GroupSync object to a new GroupSync 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 GroupSync Clone(this GroupSync source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as GroupSync);
     }
     else
     {
         var target = new GroupSync();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Copies the properties from another GroupSync object to this GroupSync object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this GroupSync target, GroupSync source)
 {
     target.Id = source.Id;
     target.AddUserAccountsDuringSync = source.AddUserAccountsDuringSync;
     target.ExitSystemEmailId         = source.ExitSystemEmailId;
     target.ForeignGuid             = source.ForeignGuid;
     target.ForeignKey              = source.ForeignKey;
     target.GroupId                 = source.GroupId;
     target.GroupTypeRoleId         = source.GroupTypeRoleId;
     target.SyncDataViewId          = source.SyncDataViewId;
     target.WelcomeSystemEmailId    = source.WelcomeSystemEmailId;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }