/// <summary>
        /// Add a default record to the table
        /// </summary>
        /// <returns></returns>
        internal DBDefaultRecord AddDefaultRecord()
        {
            DBDefaultRecord rec = new DBDefaultRecord();

            this.DefaultRecords.Add(rec);

            return(rec);
        }
Beispiel #2
0
        private static void populateXMLDefaultRecord(XmlReader reader, DBTable table)
        {
            reader.ReadStartElement();
            DBDefaultRecord rec = table.AddDefaultRecord();

            while ((reader.NodeType == XmlNodeType.Element) && (reader.Name == "columnValue"))
            {
                String recColumnName = reader.GetAttribute("column");
                reader.ReadStartElement();
                object recData = reader.ReadContentAsObject();
                rec.AddValue(recColumnName, recData);

                if ((reader.NodeType == XmlNodeType.EndElement) && (reader.Name == "columnValue"))
                {
                    reader.ReadEndElement();
                }
            }
            reader.ReadEndElement();
        }