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

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

            return result;
        }
Exemplo n.º 2
0
 public static void PopulateRoomType(RoomType input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.RoomTypeId = Utilities.ToInt(reader[RoomSearch.Common.RoomType.ColumnNames.RoomTypeId]);
     input.Name = Utilities.ToString(reader[RoomSearch.Common.RoomType.ColumnNames.Name]);
     input.Description = Utilities.ToString(reader[RoomSearch.Common.RoomType.ColumnNames.Description]);
 }