public ExcelConnection(XmlNamespaceManager nameSpaceManager, XmlElement connectionElement) : base(nameSpaceManager, connectionElement) { int.TryParse(connectionElement.GetAttribute("id"), out int connectionId); Id = connectionId; Name = connectionElement.GetAttribute("name"); ConnectionSourceType = (ConnectionSourceType)Enum.Parse(typeof(ConnectionSourceType), connectionElement.GetAttribute("type")); Description = connectionElement.GetAttribute("description"); if (connectionElement.SelectSingleNode("d:dbPr", nameSpaceManager) is XmlElement dbPrElement) { DatabaseProperties = new ExcelDatabaseProperties(dbPrElement); } }
public void Dispose() { DatabaseProperties = null; }