Ejemplo n.º 1
0
        public static ContactInformation ContactInformation(System.Data.IDataReader reader)
        {
            ContactInformation result = null;

            if (null != reader && reader.Read())
            {
                result = new ContactInformation();
                PopulateContactInformation(result, reader);
            }

            return result;
        }
Ejemplo n.º 2
0
        public static ContactInformation ContactInformation(System.Data.IDataReader reader)
        {
            ContactInformation result = null;

            if (null != reader && reader.Read())
            {
                result = new ContactInformation();
                PopulateContactInformation(result, reader);
            }

            return(result);
        }
Ejemplo n.º 3
0
 public static void PopulateContactInformation(ContactInformation input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId      = Utilities.ToInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.ContactInformationId]);
     input.ContactTypeId = Utilities.ToInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.ContactTypeId]);
     input.FirstName     = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.FirstName]);
     input.LastName      = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.LastName]);
     input.Address       = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Address]);
     input.Address2      = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Address2]);
     input.District      = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.District]);
     input.DistrictId    = Utilities.ToNInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.DistrictId]);
     input.City          = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.City]);
     input.CityId        = Utilities.ToNInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.CityId]);
     input.State         = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.State]);
     input.Postcode      = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Postcode]);
     input.CountryId     = Utilities.ToNInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.CountryId]);
     input.PhoneNumber   = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.PhoneNumber]);
     input.FaxNumber     = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.FaxNumber]);
     input.Email         = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Email]);
     input.DoB           = Utilities.ToNDateTime(reader[RoomSearch.Common.ContactInformation.ColumnNames.DoB]);
     input.Visa          = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Visa]);
     input.VisaValidFrom = Utilities.ToNDateTime(reader[RoomSearch.Common.ContactInformation.ColumnNames.VisaValidFrom]);
     input.VisaValidTo   = Utilities.ToNDateTime(reader[RoomSearch.Common.ContactInformation.ColumnNames.VisaValidTo]);
 }
Ejemplo n.º 4
0
 public static void PopulateContactInformation(ContactInformation input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = Utilities.ToInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.ContactInformationId]);
     input.ContactTypeId = Utilities.ToInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.ContactTypeId]);
     input.FirstName = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.FirstName]);
     input.LastName = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.LastName]);
     input.Address = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Address]);
     input.Address2 = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Address2]);
     input.District = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.District]);
     input.DistrictId = Utilities.ToNInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.DistrictId]);
     input.City = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.City]);
     input.CityId = Utilities.ToNInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.CityId]);
     input.State = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.State]);
     input.Postcode = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Postcode]);
     input.CountryId = Utilities.ToNInt(reader[RoomSearch.Common.ContactInformation.ColumnNames.CountryId]);
     input.PhoneNumber = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.PhoneNumber]);
     input.FaxNumber = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.FaxNumber]);
     input.Email = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Email]);
     input.DoB = Utilities.ToNDateTime(reader[RoomSearch.Common.ContactInformation.ColumnNames.DoB]);
     input.Visa = Utilities.ToString(reader[RoomSearch.Common.ContactInformation.ColumnNames.Visa]);
     input.VisaValidFrom = Utilities.ToNDateTime(reader[RoomSearch.Common.ContactInformation.ColumnNames.VisaValidFrom]);
     input.VisaValidTo = Utilities.ToNDateTime(reader[RoomSearch.Common.ContactInformation.ColumnNames.VisaValidTo]);
 }