/// <summary> /// Deprecated Method for adding a new object to the Emails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmails(Email email) { base.AddObject("Emails", email); }
/// <summary> /// Create a new Email object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="from">Initial value of the From property.</param> /// <param name="to">Initial value of the To property.</param> /// <param name="subject">Initial value of the Subject property.</param> /// <param name="body">Initial value of the Body property.</param> public static Email CreateEmail(global::System.Int32 id, global::System.String from, global::System.String to, global::System.String subject, global::System.String body) { Email email = new Email(); email.Id = id; email.From = from; email.To = to; email.Subject = subject; email.Body = body; return email; }