private void ReadNext()
        {
            m_Next = null;

            if (m_Reader != null)
            {
                if (m_Reader.ReadToFollowing("entry", TableStorageConstants.Atom.NAMESPACE))
                {
                    m_Reader.ReadStartElement("entry", TableStorageConstants.Atom.NAMESPACE);

                    if (m_Reader.ReadToFollowing("properties", TableStorageConstants.Edm.NAMESPACE))
                    {
                        m_Reader.ReadStartElement("properties", TableStorageConstants.Edm.NAMESPACE);

                        m_Next = new TableStorageFieldCollection();

                        while (m_Reader.IsStartElement())
                        {
                            bool   isEmpty      = m_Reader.IsEmptyElement;
                            string propertyName = m_Reader.LocalName;
                            bool   isNull;
                            string edmType;

                            if (m_Reader.MoveToAttribute("null", TableStorageConstants.Edm.NAMESPACE))
                            {
                                isNull = m_Reader.ReadContentAsBoolean();
                            }
                            else
                            {
                                isNull = false;
                            }

                            if (m_Reader.MoveToAttribute("type", TableStorageConstants.Edm.NAMESPACE))
                            {
                                edmType = m_Reader.ReadContentAsString();
                            }
                            else
                            {
                                edmType = TableStorageConstants.Edm.TYPE_STRING;
                            }

                            m_Reader.ReadStartElement(propertyName, TableStorageConstants.DataServices.NAMESPACE);

                            TableStorageField field = ToObject(m_Reader, edmType, isNull, propertyName);

                            m_Next.Add(field);

                            if (!isEmpty)
                            {
                                m_Reader.ReadEndElement();
                            }
                        }
                    }
                }
            }
        }
        private TableStorageFieldCollection ConvertParameters()
        {
            TableStorageFieldCollection parameters = new TableStorageFieldCollection();

            foreach (DbParameter parameter in m_Parameters)
            {
                if (parameter.Direction != ParameterDirection.Input)
                {
                    throw new TableStorageException(string.Format(Resources.ParamterDirectionNotSupported, ParameterDirection.Input));
                }

                TableStorageField field = ToField(parameter);

                parameters.Add(field);
            }

            return(parameters);
        }