/// <summary> /// Deprecated Method for adding a new object to the EmailTemplates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmailTemplates(EmailTemplate emailTemplate) { base.AddObject("EmailTemplates", emailTemplate); }
/// <summary> /// Create a new EmailTemplate object. /// </summary> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="siteGuid">Initial value of the SiteGuid property.</param> /// <param name="featureGuid">Initial value of the FeatureGuid property.</param> /// <param name="moduleGuid">Initial value of the ModuleGuid property.</param> /// <param name="specialGuid1">Initial value of the SpecialGuid1 property.</param> /// <param name="specialGuid2">Initial value of the SpecialGuid2 property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="subject">Initial value of the Subject property.</param> /// <param name="textBody">Initial value of the TextBody property.</param> /// <param name="hasHtml">Initial value of the HasHtml property.</param> /// <param name="isEditable">Initial value of the IsEditable property.</param> /// <param name="createdUtc">Initial value of the CreatedUtc property.</param> /// <param name="lastModUtc">Initial value of the LastModUtc property.</param> /// <param name="lastModBy">Initial value of the LastModBy property.</param> public static EmailTemplate CreateEmailTemplate(global::System.Guid guid, global::System.Guid siteGuid, global::System.Guid featureGuid, global::System.Guid moduleGuid, global::System.Guid specialGuid1, global::System.Guid specialGuid2, global::System.String name, global::System.String subject, global::System.String textBody, global::System.Boolean hasHtml, global::System.Boolean isEditable, global::System.DateTime createdUtc, global::System.DateTime lastModUtc, global::System.Guid lastModBy) { EmailTemplate emailTemplate = new EmailTemplate(); emailTemplate.Guid = guid; emailTemplate.SiteGuid = siteGuid; emailTemplate.FeatureGuid = featureGuid; emailTemplate.ModuleGuid = moduleGuid; emailTemplate.SpecialGuid1 = specialGuid1; emailTemplate.SpecialGuid2 = specialGuid2; emailTemplate.Name = name; emailTemplate.Subject = subject; emailTemplate.TextBody = textBody; emailTemplate.HasHtml = hasHtml; emailTemplate.IsEditable = isEditable; emailTemplate.CreatedUtc = createdUtc; emailTemplate.LastModUtc = lastModUtc; emailTemplate.LastModBy = lastModBy; return emailTemplate; }