Пример #1
0
        /// <summary>
        /// Returns a new HelpFaqDetails instance filled with the DataReader's current record data
        /// </summary>
        protected virtual HelpFaqDetails GetHelpFaqFromReader(DbDataReader reader)
        {
            HelpFaqDetails helpFaq = new HelpFaqDetails();

            if (reader.HasRows)
            {
                helpFaq.HelpFAQId   = GetReaderValue_Int32(reader, "HelpFAQId", 0);            //From: [Table]
                helpFaq.HelpGroupNo = GetReaderValue_Int32(reader, "HelpGroupNo", 0);          //From: [Table]
                helpFaq.Question    = GetReaderValue_String(reader, "Question", "");           //From: [Table]
                helpFaq.Answer      = GetReaderValue_String(reader, "Answer", "");             //From: [Table]
                helpFaq.SortOrder   = GetReaderValue_NullableInt32(reader, "SortOrder", null); //From: [Table]
            }
            return(helpFaq);
        }
Пример #2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_HelpFAQ]
 /// </summary>
 public static HelpFaq Get(System.Int32?helpFaqId)
 {
     Rebound.GlobalTrader.DAL.HelpFaqDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.HelpFaq.Get(helpFaqId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         HelpFaq obj = new HelpFaq();
         obj.HelpFAQId   = objDetails.HelpFAQId;
         obj.HelpGroupNo = objDetails.HelpGroupNo;
         obj.Question    = objDetails.Question;
         obj.Answer      = objDetails.Answer;
         obj.SortOrder   = objDetails.SortOrder;
         objDetails      = null;
         return(obj);
     }
 }