public EntriesStore(EF.ljArchive.Engine.Journal j) : base(typeof(string), typeof(string), typeof(string), typeof(string), typeof(string)) { if (j == null) { return; } foreach (EF.ljArchive.Engine.Journal.EventsRow er in j.Events) { string subject = er.IsSubjectNull() ? string.Empty : CleanHTML(er.Subject); string body = er.IsBodyNull() ? string.Empty : CleanHTML(er.Body); string security = er.IsSecurityNull() ? string.Empty : er.Security; this.AppendValues(security, er.ID.ToString(), er.Date.ToString(), subject, body); } }
public CommentsStore(EF.ljArchive.Engine.Journal j) : base(typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string)) { if (j == null) { return; } foreach (EF.ljArchive.Engine.Journal.CommentsRow cr in j.Comments) { string subject = cr.IsSubjectNull() ? string.Empty : CleanHTML(cr.Subject); string body = cr.IsBodyNull() ? string.Empty : CleanHTML(cr.Body); string state = cr.IsStateNull() ? string.Empty : cr.State; string username = cr.IsNull("PosterUserName") ? string.Empty : (string)cr["PosterUserName"]; this.AppendValues(state, cr.ID.ToString(), username, cr.Date.ToString(), subject, body); } }