コード例 #1
0
 /// <summary>
 /// Clones this PageView object to a new PageView 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 PageView Clone(this PageView source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as PageView);
     }
     else
     {
         var target = new PageView();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
コード例 #2
0
 /// <summary>
 /// Copies the properties from another PageView object to this PageView object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this PageView target, PageView source)
 {
     target.Id                = source.Id;
     target.DateTimeViewed    = source.DateTimeViewed;
     target.ForeignGuid       = source.ForeignGuid;
     target.ForeignKey        = source.ForeignKey;
     target.PageId            = source.PageId;
     target.PageTitle         = source.PageTitle;
     target.PageViewSessionId = source.PageViewSessionId;
     target.PersonAliasId     = source.PersonAliasId;
     target.SiteId            = source.SiteId;
     target.Url               = source.Url;
     target.Guid              = source.Guid;
     target.ForeignId         = source.ForeignId;
 }
コード例 #3
0
 /// <summary>
 /// Copies the properties from another PageView object to this PageView object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this PageView target, PageView source)
 {
     target.Id             = source.Id;
     target.ClientType     = source.ClientType;
     target.DateTimeViewed = source.DateTimeViewed;
     target.IpAddress      = source.IpAddress;
     target.PageId         = source.PageId;
     target.PageTitle      = source.PageTitle;
     target.PersonAliasId  = source.PersonAliasId;
     target.SessionId      = source.SessionId;
     target.SiteId         = source.SiteId;
     target.Url            = source.Url;
     target.UserAgent      = source.UserAgent;
     target.Guid           = source.Guid;
     target.ForeignId      = source.ForeignId;
 }