/// <summary>
 /// Sets the properties of the object from an instance of the data class.
 /// </summary>
 public void SetCurrentValues(BlogPostData data)
 {
     // set all fields
     Title       = data.Title;
     Body        = data.Body;
     ShortDesc   = data.ShortDesc;
     Description = data.Description;
     Meta        = data.Meta;
     UrlSlug     = data.UrlSlug;
     Published   = data.Published;
     PostedOn    = data.PostedOn;
     Modified    = data.Modified;
     Category    = data.Category;
     Enabled     = data.Enabled;
 }
 /// <summary>
 /// Sets/Saves the current values to the original values class
 /// </summary>
 public override void SetOriginalValues()
 {
     m_Original = (BlogPostData)m_Current.Clone();
 }
 /// <summary>
 /// Constructor used to create an instance of this table using the
 /// provided data class.
 /// </summary>
 public BlogPost(SqlHelper db, BlogPostData data)
     : this(db, data.Id)
 {
     SetCurrentValues(data);
 }