/// <summary>
 /// Returns a Article object filled with the data taken from the input ArticleDetails
 /// </summary>
 private static ArticleArchiveElement GetArticleArchiveFromArticleArchiveDetails(ArticleArchiveElementDetails record)
 {
     if (record == null)
         return null;
     else
     {
         return new ArticleArchiveElement() { ArticlesCount = record.ArticlesCount,
             StartDate = record.StartDate };
     }
 }
Example #2
0
        protected virtual ArticleArchiveElementDetails GetArticleArchiveElementDetailsFromReader(IDataReader reader)
        {
            var ret = new ArticleArchiveElementDetails();
            ret.ArticlesCount = (int)reader["ArticlesCount"];
            ret.StartDate = (DateTime)reader["StartDate"];

            return ret;
        }