Click here to Skip to main content
15,897,518 members
Articles / Database Development / SQL Server

SQL XML Documentation

Rate me:
Please Sign up or sign in to vote.
4.59/5 (12 votes)
29 Feb 2008CPOL5 min read 113.7K   1.4K   75  
How to create and compile SQL XML Documentation comments
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace JocysCom.Sql.ScriptsGenerator
{
	public partial class MainForm : Form
	{
		public MainForm()
		{
			InitializeComponent();
		}


		public struct TabPages
		{
			public static TabPage GenerateDataBaseScripts;
			public static TabPage GenerateActionScripts;
			public static TabPage ProcedureHeaders;
			public static TabPage XmlCommentsExtractTest;
		}

		public struct TabControls
		{
			public static Controls.GenerateDataBaseScripts GenerateDataBaseScripts;
			public static Controls.GenerateActionScripts GenerateActionScripts;
			public static Controls.ProcedureHeaders ProcedureHeaders;
			public static Controls.XmlCommentsExtractTest XmlCommentsExtractTest;
		}

		private void MainForm_Load(object sender, EventArgs e)
		{
			//-------------------------------------------------
			TabControls.GenerateActionScripts = new Controls.GenerateActionScripts();
			TabControls.GenerateActionScripts.Dock = System.Windows.Forms.DockStyle.Fill;
			TabPages.GenerateActionScripts = new TabPage("Generate Action Scripts");
			TabPages.GenerateActionScripts.Controls.Add(TabControls.GenerateActionScripts);
			MainTabControl.TabPages.Add(TabPages.GenerateActionScripts);
			//-------------------------------------------------
			TabControls.GenerateDataBaseScripts = new Controls.GenerateDataBaseScripts();
			TabControls.GenerateDataBaseScripts.Dock = System.Windows.Forms.DockStyle.Fill;
			TabPages.GenerateDataBaseScripts = new TabPage("Generate Database Scripts");
			TabPages.GenerateDataBaseScripts.Controls.Add(TabControls.GenerateDataBaseScripts);
			//MainTabControl.TabPages.Add(TabPages.GenerateDataBaseScripts);
			//-------------------------------------------------
			TabControls.ProcedureHeaders = new Controls.ProcedureHeaders();
			TabControls.ProcedureHeaders.Dock = System.Windows.Forms.DockStyle.Fill;
			TabPages.ProcedureHeaders = new TabPage("Procedure Headers");
			TabPages.ProcedureHeaders.Controls.Add(TabControls.ProcedureHeaders);
			//MainTabControl.TabPages.Add(TabPages.ProcedureHeaders);
			//-------------------------------------------------
			TabControls.XmlCommentsExtractTest = new Controls.XmlCommentsExtractTest();
			TabControls.XmlCommentsExtractTest.Dock = System.Windows.Forms.DockStyle.Fill;
			TabPages.XmlCommentsExtractTest = new TabPage("XML Comments Extract Test");
			TabPages.XmlCommentsExtractTest.Controls.Add(TabControls.XmlCommentsExtractTest);
			//MainTabControl.TabPages.Add(TabPages.XmlCommentsExtractTest);
		}

	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions