Esempio n. 1
0
 /// <summary>
 /// Copies the properties from another PageViewUserAgent object to this PageViewUserAgent object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this PageViewUserAgent target, PageViewUserAgent source)
 {
     target.Id              = source.Id;
     target.Browser         = source.Browser;
     target.ClientType      = source.ClientType;
     target.ForeignGuid     = source.ForeignGuid;
     target.ForeignKey      = source.ForeignKey;
     target.OperatingSystem = source.OperatingSystem;
     target.UserAgent       = source.UserAgent;
     target.Guid            = source.Guid;
     target.ForeignId       = source.ForeignId;
 }
Esempio n. 2
0
 /// <summary>
 /// Clones this PageViewUserAgent object to a new PageViewUserAgent 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 PageViewUserAgent Clone(this PageViewUserAgent source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as PageViewUserAgent);
     }
     else
     {
         var target = new PageViewUserAgent();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }