コード例 #1
0
 /// <summary>
 /// Sets the properties of the object from an instance of the data class.
 /// </summary>
 public void SetCurrentValues(BlogTagData data)
 {
     // set all fields
     Id          = data.Id;
     Name        = data.Name;
     UrlSlug     = data.UrlSlug;
     Description = data.Description;
 }
コード例 #2
0
 /// <summary>
 /// Constructor used to create an instance of this table using the
 /// provided data class.
 /// </summary>
 public BlogTag(SqlHelper db, BlogTagData data)
     : this(db, data.Id)
 {
     SetCurrentValues(data);
 }
コード例 #3
0
 /// <summary>
 /// Sets/Saves the current values to the original values class
 /// </summary>
 public override void SetOriginalValues()
 {
     m_Original = (BlogTagData)m_Current.Clone();
 }