/// <summary> /// Returns a new CommunicationLogTypeDetails instance filled with the DataReader's current record data /// </summary> protected virtual CommunicationLogTypeDetails GetCommunicationLogTypeFromReader(DbDataReader reader) { CommunicationLogTypeDetails communicationLogType = new CommunicationLogTypeDetails(); if (reader.HasRows) { communicationLogType.CommunicationLogTypeId = GetReaderValue_Int32(reader, "CommunicationLogTypeId", 0); //From: [Table] communicationLogType.Name = GetReaderValue_String(reader, "Name", ""); //From: [Table] } return(communicationLogType); }
/// <summary> /// Get /// Calls [usp_select_CommunicationLogType] /// </summary> public static CommunicationLogType Get(System.Int32?communicationLogTypeId) { Rebound.GlobalTrader.DAL.CommunicationLogTypeDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLogType.Get(communicationLogTypeId); if (objDetails == null) { return(null); } else { CommunicationLogType obj = new CommunicationLogType(); obj.CommunicationLogTypeId = objDetails.CommunicationLogTypeId; obj.Name = objDetails.Name; objDetails = null; return(obj); } }