Example #1
0
        /// <summary>
        /// Returns a new MailMessageFolderDetails instance filled with the DataReader's current record data
        /// </summary>
        protected virtual MailMessageFolderDetails GetMailMessageFolderFromReader(DbDataReader reader)
        {
            MailMessageFolderDetails mailMessageFolder = new MailMessageFolderDetails();

            if (reader.HasRows)
            {
                mailMessageFolder.MailMessageFolderId = GetReaderValue_Int32(reader, "MailMessageFolderId", 0); //From: [Table]
                mailMessageFolder.LoginNo             = GetReaderValue_NullableInt32(reader, "LoginNo", null);  //From: [Table]
                mailMessageFolder.Name      = GetReaderValue_String(reader, "Name", "");                        //From: [Table]
                mailMessageFolder.UpdatedBy = GetReaderValue_NullableInt32(reader, "UpdatedBy", null);          //From: [Table]
                mailMessageFolder.DLUP      = GetReaderValue_DateTime(reader, "DLUP", DateTime.MinValue);       //From: [Table]
            }
            return(mailMessageFolder);
        }
Example #2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_MailMessageFolder]
 /// </summary>
 public static MailMessageFolder Get(System.Int32?mailMessageFolderId)
 {
     Rebound.GlobalTrader.DAL.MailMessageFolderDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailMessageFolder.Get(mailMessageFolderId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         MailMessageFolder obj = new MailMessageFolder();
         obj.MailMessageFolderId = objDetails.MailMessageFolderId;
         obj.LoginNo             = objDetails.LoginNo;
         obj.Name      = objDetails.Name;
         obj.UpdatedBy = objDetails.UpdatedBy;
         obj.DLUP      = objDetails.DLUP;
         objDetails    = null;
         return(obj);
     }
 }