public SQLiteIPAddressParser()
        {
            configuration = IPQueryConfigurationView.Instance.Configuration;

            dataSourceName = configuration.Keys["DataSourceName"].Value;

            db = DatabaseFactory.CreateDatabase(dataSourceName);
        }
        public SQLServerIPAddressParser()
        {
            configuration = IPQueryConfigurationView.Instance.Configuration;

            dataSourceName = configuration.Keys["DataSourceName"].Value;

            connectionString = ConfigurationManager.ConnectionStrings[dataSourceName].ConnectionString;
        }
        /// <summary>重新加载</summary>
        private void Reload()
        {
            this.configuration = IPQueryConfigurationView.Instance.Configuration;

            // 创建对象构建器(Spring.NET)
            string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(IPQueryConfiguration.ApplicationName, springObjectFile);

            this.ipAddressParser = objectBuilder.GetObject <IPAddressParser>(typeof(IPAddressParser));
        }