Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the MailTemplates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMailTemplates(MailTemplate mailTemplate)
 {
     base.AddObject("MailTemplates", mailTemplate);
 }
Esempio n. 2
0
        public MailTemplateModel(MailTemplate template)
        {
            _mailTemplate = template;

            LoadedTime = DateTime.Now;
        }
Esempio n. 3
0
 /// <summary>
 /// Create a new MailTemplate object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="template">Initial value of the Template property.</param>
 /// <param name="categoryID">Initial value of the CategoryID property.</param>
 /// <param name="typeID">Initial value of the TypeID property.</param>
 /// <param name="lastUpdatedDate">Initial value of the LastUpdatedDate property.</param>
 /// <param name="whoByID">Initial value of the WhoByID property.</param>
 /// <param name="isEnabled">Initial value of the IsEnabled property.</param>
 public static MailTemplate CreateMailTemplate(global::System.Guid id, global::System.String name, global::System.String template, global::System.Guid categoryID, global::System.Guid typeID, global::System.DateTime lastUpdatedDate, global::System.Guid whoByID, global::System.Boolean isEnabled)
 {
     MailTemplate mailTemplate = new MailTemplate();
     mailTemplate.ID = id;
     mailTemplate.Name = name;
     mailTemplate.Template = template;
     mailTemplate.CategoryID = categoryID;
     mailTemplate.TypeID = typeID;
     mailTemplate.LastUpdatedDate = lastUpdatedDate;
     mailTemplate.WhoByID = whoByID;
     mailTemplate.IsEnabled = isEnabled;
     return mailTemplate;
 }