Example #1
0
 /// <summary>
 /// 创建新的 EmailTemplate 对象。
 /// </summary>
 /// <param name="templateId">TemplateId 属性的初始值。</param>
 /// <param name="templateName">TemplateName 属性的初始值。</param>
 /// <param name="templateBody">TemplateBody 属性的初始值。</param>
 /// <param name="emailSubject">EmailSubject 属性的初始值。</param>
 /// <param name="sender">Sender 属性的初始值。</param>
 public static EmailTemplate CreateEmailTemplate(global::System.Int32 templateId, global::System.String templateName, global::System.String templateBody, global::System.String emailSubject, global::System.String sender)
 {
     EmailTemplate emailTemplate = new EmailTemplate();
     emailTemplate.TemplateId = templateId;
     emailTemplate.TemplateName = templateName;
     emailTemplate.TemplateBody = templateBody;
     emailTemplate.EmailSubject = emailSubject;
     emailTemplate.Sender = sender;
     return emailTemplate;
 }
Example #2
0
 /// <summary>
 /// 用于向 EmailTemplate EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToEmailTemplate(EmailTemplate emailTemplate)
 {
     base.AddObject("EmailTemplate", emailTemplate);
 }