예제 #1
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByCreatedUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return(emailTemplate1.CreatedUtc.CompareTo(emailTemplate2.CreatedUtc));
 }
예제 #2
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByLastModUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return(emailTemplate1.LastModUtc.CompareTo(emailTemplate2.LastModUtc));
 }
예제 #3
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByTextBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return(emailTemplate1.TextBody.CompareTo(emailTemplate2.TextBody));
 }
예제 #4
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByHtmlBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return(emailTemplate1.HtmlBody.CompareTo(emailTemplate2.HtmlBody));
 }
예제 #5
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByName(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return(emailTemplate1.Name.CompareTo(emailTemplate2.Name));
 }
예제 #6
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareBySubject(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return(emailTemplate1.Subject.CompareTo(emailTemplate2.Subject));
 }
예제 #7
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByTextBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return emailTemplate1.TextBody.CompareTo(emailTemplate2.TextBody);
 }
예제 #8
0
        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;
        }
예제 #9
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareBySubject(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return emailTemplate1.Subject.CompareTo(emailTemplate2.Subject);
 }
예제 #10
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByName(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return emailTemplate1.Name.CompareTo(emailTemplate2.Name);
 }
예제 #11
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByLastModUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return emailTemplate1.LastModUtc.CompareTo(emailTemplate2.LastModUtc);
 }
예제 #12
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByHtmlBody(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return emailTemplate1.HtmlBody.CompareTo(emailTemplate2.HtmlBody);
 }
예제 #13
0
 /// <summary>
 /// Compares 2 instances of EmailTemplate.
 /// </summary>
 public static int CompareByCreatedUtc(EmailTemplate emailTemplate1, EmailTemplate emailTemplate2)
 {
     return emailTemplate1.CreatedUtc.CompareTo(emailTemplate2.CreatedUtc);
 }