/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByCreatedUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return(emailTemplate1.CreatedUtc.CompareTo(emailTemplate2.CreatedUtc)); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByLastModUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return(emailTemplate1.LastModUtc.CompareTo(emailTemplate2.LastModUtc)); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByTextBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return(emailTemplate1.TextBody.CompareTo(emailTemplate2.TextBody)); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByHtmlBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return(emailTemplate1.HtmlBody.CompareTo(emailTemplate2.HtmlBody)); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByName(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return(emailTemplate1.Name.CompareTo(emailTemplate2.Name)); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareBySubject(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return(emailTemplate1.Subject.CompareTo(emailTemplate2.Subject)); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByTextBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return emailTemplate1.TextBody.CompareTo(emailTemplate2.TextBody); }
private static List<EmailTemplate> LoadListFromReader(IDataReader reader) { List<EmailTemplate> emailTemplateList = new List<EmailTemplate>(); try { while (reader.Read()) { EmailTemplate emailTemplate = new EmailTemplate(); emailTemplate.guid = new Guid(reader["Guid"].ToString()); emailTemplate.siteGuid = new Guid(reader["SiteGuid"].ToString()); emailTemplate.featureGuid = new Guid(reader["FeatureGuid"].ToString()); emailTemplate.moduleGuid = new Guid(reader["ModuleGuid"].ToString()); emailTemplate.specialGuid1 = new Guid(reader["SpecialGuid1"].ToString()); emailTemplate.specialGuid2 = new Guid(reader["SpecialGuid2"].ToString()); emailTemplate.name = reader["Name"].ToString(); emailTemplate.subject = reader["Subject"].ToString(); emailTemplate.textBody = reader["TextBody"].ToString(); emailTemplate.htmlBody = reader["HtmlBody"].ToString(); emailTemplate.hasHtml = Convert.ToBoolean(reader["HasHtml"]); emailTemplate.isEditable = Convert.ToBoolean(reader["IsEditable"]); emailTemplate.createdUtc = Convert.ToDateTime(reader["CreatedUtc"]); emailTemplate.lastModUtc = Convert.ToDateTime(reader["LastModUtc"]); emailTemplate.lastModBy = new Guid(reader["LastModBy"].ToString()); emailTemplateList.Add(emailTemplate); } } finally { reader.Close(); } return emailTemplateList; }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareBySubject(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return emailTemplate1.Subject.CompareTo(emailTemplate2.Subject); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByName(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return emailTemplate1.Name.CompareTo(emailTemplate2.Name); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByLastModUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return emailTemplate1.LastModUtc.CompareTo(emailTemplate2.LastModUtc); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByHtmlBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return emailTemplate1.HtmlBody.CompareTo(emailTemplate2.HtmlBody); }
/// <summary> /// Compares 2 instances of EmailTemplate. /// </summary> public static int CompareByCreatedUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2) { return emailTemplate1.CreatedUtc.CompareTo(emailTemplate2.CreatedUtc); }