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