Пример #1
0
        /// <summary>
        /// <para>
        /// Add the default child nodes for the current node.
        /// </para>
        /// </summary>
        /// <remarks>
        /// <para>
        /// This will add the default database type nodes.
        /// </para>
        /// </remarks>
        protected override void AddDefaultChildNodes()
        {
            base.AddDefaultChildNodes();
            DatabaseTypeNode node = new DatabaseTypeNode(new DatabaseTypeData(SR.DefaultDatabaseTypeName, typeof(SqlServerDynamicQuery).AssemblyQualifiedName));

            Nodes.AddWithDefaultChildren(node);
        }
Пример #2
0
 /// <devdoc>
 /// Handles the remove of a dynamic query node.
 /// </devdoc>
 private void OnDatabaseTypeNodeRemoved(object sender, ConfigurationNodeChangedEventArgs e)
 {
     this.databaseTypeNode = null;
     DatabaseTypeName      = string.Empty;
 }