/// <summary>
        ///     Parses a data record into a <see cref="DatabaseIndexColumn" /> instance.
        /// </summary>
        private DomainTableIndexColumn ParseIndexColumn(DomainTableIndex index, IDataRecord record)
        {
            DomainTableIndexColumn indexColumn = index.CreateColumn();

            indexColumn.ReferencedColumn = index.Table.TableColumns.FirstOrDefault(column => column.ColumnName == record["name"].ConvertTo <String>());
            return(indexColumn);
        }
 /// <summary>
 ///     Deserialises the version history from the specified xml element.
 /// </summary>
 internal static void Deserialise(DomainTableIndex index, XmlNode parentNode)
 {
     foreach (XmlNode xmlNode in parentNode.SelectNodes("column"))
     {
         DomainTableIndexColumn result = index.CreateColumn();
         result.Deserialise(xmlNode);
     }
 }