using System; using System.Collections.Generic; using System.Text; using System.Data.Common; namespace FastReport.Data { /// /// Represents the XmlDataConnection connection string builder. /// /// /// Use this class to parse connection string returned by the XmlDataConnection class. /// public class XmlConnectionStringBuilder : DbConnectionStringBuilder { /// /// Gets or sets the path to .xml file. /// public string XmlFile { get { object xmlFile; if (TryGetValue("XmlFile", out xmlFile)) return (string)xmlFile; return ""; } set { base["XmlFile"] = value; } } /// /// Gets or sets the path to .xsd file. /// public string XsdFile { get { object xsdFile; if (TryGetValue("XsdFile", out xsdFile)) return (string)xsdFile; return ""; } set { base["XsdFile"] = value; } } /// /// Initializes a new instance of the class with default settings. /// public XmlConnectionStringBuilder() { ConnectionString = ""; } /// /// Initializes a new instance of the class with /// specified connection string. /// /// The connection string. public XmlConnectionStringBuilder(string connectionString) : base() { ConnectionString = connectionString; } } }