/// <summary> /// Deprecated Method for adding a new object to the EmailConfigs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmailConfigs(EmailConfig emailConfig) { base.AddObject("EmailConfigs", emailConfig); }
/// <summary> /// Create a new EmailConfig object. /// </summary> /// <param name="senderEmail">Initial value of the SenderEmail property.</param> /// <param name="mailSubject">Initial value of the MailSubject property.</param> /// <param name="smtpServer">Initial value of the SmtpServer property.</param> public static EmailConfig CreateEmailConfig(global::System.String senderEmail, global::System.String mailSubject, global::System.String smtpServer) { EmailConfig emailConfig = new EmailConfig(); emailConfig.SenderEmail = senderEmail; emailConfig.MailSubject = mailSubject; emailConfig.SmtpServer = smtpServer; return emailConfig; }