コード例 #1
0
        private void BuildConnectionStringNode(ConnectionStringSettings connectionString)
        {
            ConnectionStringSettingsNode connectionStringNode = new ConnectionStringSettingsNode(connectionString);

            if (connectionStringNode.Name == defaultDatabaseName)
            {
                databaseSectionNode.DefaultDatabase = connectionStringNode;
            }
            node.AddNode(connectionStringNode);
        }
		private void BuildConnectionStringNode(ConnectionStringSettings connectionString)
		{
			ConnectionStringSettingsNode connectionStringNode = new ConnectionStringSettingsNode(connectionString);
			if (connectionStringNode.Name == defaultDatabaseName) databaseSectionNode.DefaultDatabase = connectionStringNode;
			node.AddNode(connectionStringNode);
		    ICollection<ConnectionStringNameValuePair> pairs = ConnectionStringParser.Parse(connectionString.ConnectionString);
		    foreach (ConnectionStringNameValuePair pair in pairs)
		    {
				connectionStringNode.AddNode(new ParameterNode(pair.Name, pair.Value));
		    }		
		}