/// <summary>
        /// Returns a new StockDetails instance filled with the DataReader's current record data
        /// </summary>
        protected virtual EightDCodeDetails Get8DCodeFromReader(DbDataReader reader)
        {
            EightDCodeDetails D8Code = new EightDCodeDetails();

            if (reader.HasRows)
            {
                D8Code.Analysis8DCategoryID    = GetReaderValue_Int32(reader, "Analysis8DCategoryID", 0);    //From: [Table]
                D8Code.Analysis8DSubCategoryID = GetReaderValue_Int32(reader, "Analysis8DSubCategoryID", 0); //From: [Table]
                D8Code.Prefix            = GetReaderValue_String(reader, "Prefix", "");                      //From: [Table]
                D8Code.PrefixDescription = GetReaderValue_String(reader, "Prefix", "");                      //From: [Table]
                D8Code.Code            = GetReaderValue_String(reader, "Code", "");                          //From: [Table]
                D8Code.CodeDescription = GetReaderValue_String(reader, "CodeDescription", "");               //From: [Table]
                D8Code.Inactive        = GetReaderValue_Boolean(reader, "Inactive", false);                  //From: [Table]
                D8Code.UpdatedBy       = GetReaderValue_NullableInt32(reader, "UpdatedBy", null);            //From: [Table]
                D8Code.DLUP            = GetReaderValue_DateTime(reader, "DLUP", DateTime.MinValue);         //From: [Table]
            }
            return(D8Code);
        }
Beispiel #2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_Analysis8DCategory]
 /// </summary>
 public static EightDCode Get(System.Int32?Id)
 {
     Rebound.GlobalTrader.DAL.EightDCodeDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.EightDCode.Get(Id);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         EightDCode obj = new EightDCode();
         obj.Analysis8DCategoryID = objDetails.Analysis8DCategoryID;
         obj.Prefix            = objDetails.Prefix;
         obj.PrefixDescription = objDetails.PrefixDescription;
         obj.SortOrder         = objDetails.SortOrder;
         obj.Inactive          = objDetails.Inactive;
         obj.UpdatedBy         = objDetails.UpdatedBy;
         obj.DLUP   = objDetails.DLUP;
         objDetails = null;
         return(obj);
     }
 }