/// <summary> /// Returns a new GlobalCurrencyListDetails instance filled with the DataReader's current record data /// </summary> protected virtual GlobalCurrencyListDetails GetGlobalCurrencyListFromReader(DbDataReader reader) { GlobalCurrencyListDetails globalCurrencyList = new GlobalCurrencyListDetails(); if (reader.HasRows) { globalCurrencyList.GlobalCurrencyId = GetReaderValue_Int32(reader, "GlobalCurrencyId", 0); //From: [Table] globalCurrencyList.GlobalCurrencyName = GetReaderValue_String(reader, "GlobalCurrencyName", ""); //From: [Table] globalCurrencyList.GlobalCurrencyDescription = GetReaderValue_String(reader, "GlobalCurrencyDescription", ""); //From: [Table] globalCurrencyList.UpdatedBy = GetReaderValue_NullableInt32(reader, "UpdatedBy", null); //From: [Table] globalCurrencyList.DLUP = GetReaderValue_DateTime(reader, "DLUP", DateTime.MinValue); //From: [Table] globalCurrencyList.Priority = GetReaderValue_Boolean(reader, "Priority", false); //From: [Table] globalCurrencyList.Symbol = GetReaderValue_String(reader, "Symbol", ""); //From: [Table] } return(globalCurrencyList); }
/// <summary> /// Get /// Calls [usp_select_GlobalCurrencyList] /// </summary> public static GlobalCurrencyList Get(System.Int32?currencyId) { Rebound.GlobalTrader.DAL.GlobalCurrencyListDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.GlobalCurrencyList.Get(currencyId); if (objDetails == null) { return(null); } else { GlobalCurrencyList obj = new GlobalCurrencyList(); obj.GlobalCurrencyId = objDetails.GlobalCurrencyId; obj.GlobalCurrencyName = objDetails.GlobalCurrencyName; obj.GlobalCurrencyDescription = objDetails.GlobalCurrencyDescription; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.Priority = objDetails.Priority; obj.Symbol = objDetails.Symbol; objDetails = null; return(obj); } }