Пример #1
0
 /// <summary>
 /// Sets the properties of the object from an instance of the data class.
 /// </summary>
 public void SetCurrentValues(WebStatisticsData data)
 {
     // set all fields
     UserHostAddress = data.UserHostAddress;
     Browser         = data.Browser;
     BrowserVersion  = data.BrowserVersion;
     Url             = data.Url;
     UserAgent       = data.UserAgent;
     AccessTime      = data.AccessTime;
 }
Пример #2
0
 /// <summary>
 /// Sets/Saves the current values to the original values class
 /// </summary>
 public override void SetOriginalValues()
 {
     m_Original = (WebStatisticsData)m_Current.Clone();
 }
Пример #3
0
 /// <summary>
 /// Constructor used to create an instance of this table using the
 /// provided data class.
 /// </summary>
 public WebStatistics(SqlHelper db, WebStatisticsData data)
     : this(db, data.Id)
 {
     SetCurrentValues(data);
 }