/// <summary>
        /// Returns a new GlobalCountryListDetails instance filled with the DataReader's current record data
        /// </summary>
        protected virtual GlobalCountryListDetails GetGlobalCountryListFromReader(DbDataReader reader)
        {
            GlobalCountryListDetails globalCountryList = new GlobalCountryListDetails();

            if (reader.HasRows)
            {
                globalCountryList.GlobalCountryId   = GetReaderValue_Int32(reader, "GlobalCountryId", 0);      //From: [Table]
                globalCountryList.GlobalCountryName = GetReaderValue_String(reader, "GlobalCountryName", "");  //From: [Table]
                globalCountryList.EECMember         = GetReaderValue_Boolean(reader, "EECMember", false);      //From: [Table]
                globalCountryList.TelephonePrefix   = GetReaderValue_String(reader, "TelephonePrefix", "");    //From: [Table]
                globalCountryList.Include           = GetReaderValue_Boolean(reader, "Include", false);        //From: [Table]
                globalCountryList.UpdatedBy         = GetReaderValue_NullableInt32(reader, "UpdatedBy", null); //From: [Table]
                globalCountryList.DLUP = GetReaderValue_DateTime(reader, "DLUP", DateTime.MinValue);           //From: [Table]
            }
            return(globalCountryList);
        }
Esempio n. 2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_GlobalCountryList]
 /// </summary>
 public static GlobalCountryList Get(System.Int32?countryNo)
 {
     Rebound.GlobalTrader.DAL.GlobalCountryListDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.GlobalCountryList.Get(countryNo);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         GlobalCountryList obj = new GlobalCountryList();
         obj.GlobalCountryId   = objDetails.GlobalCountryId;
         obj.GlobalCountryName = objDetails.GlobalCountryName;
         obj.EECMember         = objDetails.EECMember;
         obj.TelephonePrefix   = objDetails.TelephonePrefix;
         obj.Include           = objDetails.Include;
         obj.UpdatedBy         = objDetails.UpdatedBy;
         obj.DLUP   = objDetails.DLUP;
         objDetails = null;
         return(obj);
     }
 }