Esempio n. 1
0
 /// <summary>
 /// Create a new mailrecord object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="processed">Initial value of the Processed property.</param>
 /// <param name="itinType">Initial value of the ItinType property.</param>
 /// <param name="time_stamp">Initial value of the time_stamp property.</param>
 /// <param name="pseudo">Initial value of the Pseudo property.</param>
 /// <param name="bounceEmailID">Initial value of the BounceEmailID property.</param>
 public static mailrecord Createmailrecord(global::System.Int32 id, global::System.Int32 processed, global::System.Int32 itinType, global::System.DateTime time_stamp, global::System.String pseudo, global::System.Int64 bounceEmailID)
 {
     mailrecord mailrecord = new mailrecord();
     mailrecord.ID = id;
     mailrecord.Processed = processed;
     mailrecord.ItinType = itinType;
     mailrecord.time_stamp = time_stamp;
     mailrecord.Pseudo = pseudo;
     mailrecord.BounceEmailID = bounceEmailID;
     return mailrecord;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the mailrecords EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTomailrecords(mailrecord mailrecord)
 {
     base.AddObject("mailrecords", mailrecord);
 }
Esempio n. 3
0
 /// <summary>
 /// SaveAccountActiveStatus
 /// </summary>
 /// <param name="AccountModelDTO"></param>
 /// <returns></returns>
 public bool SaveMailRecord(MailRecordsModel MailRecordsDTO)
 {
     //Rloc, Created, FromName, ProcessorName, FormName, Subject, Team, Company
     try
     {
         mailrecord objmailrecord = new mailrecord();
         objmailrecord.RLOC = MailRecordsDTO.RLOC;
         objmailrecord.Created = MailRecordsDTO.Created;
         objmailrecord.FromName = MailRecordsDTO.FromName;
         objmailrecord.ProcessorName = MailRecordsDTO.ProcessorName;
         objmailrecord.FormName = MailRecordsDTO.FormName;
         objmailrecord.Subject = MailRecordsDTO.Subject;
         objmailrecord.Team = MailRecordsDTO.Team;
         objmailrecord.Company = MailRecordsDTO.Company;
         wozData.SaveChanges();
         return true;
     }
     catch
     {
         return false;
     }
 }