/// <summary>
        /// Initializes a new instance of the <see cref="WikipediaParser"/> class.
        /// </summary>
        /// <param name="connectionString">The connection string.</param>
        public WikipediaParser(string connectionString)
        {
            if(connectionString == null
            || connectionString.Trim() == "") {
                throw new ArgumentNullException(
                    "connectionString",
                    "The connectionString parameter cannot be null."
                );
            }

            this._cfg = UdlParser.ParseConnectionString(connectionString);
            this._db = new DAL(this._cfg);
            this._dh = new DataHandler(connectionString);
            this._sh = new StaticHandler(connectionString);
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WikipediaParser"/> class.
        /// </summary>
        /// <param name="connectionString">The connection string.</param>
        public WikipediaParser(string connectionString)
        {
            if (connectionString == null ||
                connectionString.Trim() == "")
            {
                throw new ArgumentNullException(
                          "connectionString",
                          "The connectionString parameter cannot be null."
                          );
            }

            this._cfg = UdlParser.ParseConnectionString(connectionString);
            this._db  = new DAL(this._cfg);
            this._dh  = new DataHandler(connectionString);
            this._sh  = new StaticHandler(connectionString);
        }