Click here to Skip to main content
15,896,118 members
Articles / Desktop Programming / Win32

SQL Class Shell Generator

Rate me:
Please Sign up or sign in to vote.
4.87/5 (65 votes)
8 Jan 2009CPOL6 min read 220.4K   3.3K   233  
Generate class shells from SQL Server database tables, (SQL 2005 & 2008 only). Output languages supported: C# and VB.NET.
BODY
	{
		font-family: Segoe UI, Arial, Tahoma, MS Sans Serif, Verdana;
		font-size: 11px;
	}

BODY.typeassembly, BODY.typenamespace, BODY.typeclass, BODY.typedelegate, BODY.typeenumeration, BODY.typestructure, BODY.typeinterface
	{
		margin: 10px 10px 10px 10px;
	}

BODY.menu
	{
		margin: 10px 0px 10px 10px;
	}

A.liketext
	{
		text-decoration: none;
		color:black;
	}

IMG.mid
	{
		vertical-align: middle;
	}

IMG.midmgR
	{
		vertical-align: middle;
		padding: 0px 0px 0px 0px;
		margin: 0px 5px 0px 0px;
	}

IMG.midclkmgR
	{
		vertical-align: middle;
		padding: 0px 0px 0px 0px;
		margin: 0px 5px 0px 0px;
		cursor:hand;
	}

IMG.midmgL
	{
		vertical-align: middle;		
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 5px;
	}
	
IMG.midmgLR
	{
		vertical-align: middle;		
		padding: 0px 0px 0px 0px;
		margin: 0px 5px 0px 5px;
	}

TABLE
	{
		font-family: Segoe UI, Arial, Tahoma, MS Sans Serif, Verdana;
		font-size: 11px;
	}

TABLE.subline
	{
		width:100%;
		height:100%;
		border:0;
		background-color: LightGrey;
		border-top: 1 solid LightGrey;
		FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=White,endColorStr=LightGrey);
	}	

TABLE.toolbar
	{
		width:100%;
		height:100%;
		border:0;
		background-color: LightGray;
		border-top: 3 solid #FF3300;
		FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=White,endColorStr=LightGrey);
	}

TD.tdhead
	{
		vertical-align: middle;
		background-color: gray;
		font-weight: bold;
		height:22px;
	}

TD.tdbold
	{
		font-weight: bold;
	}

TD.tditem
	{
		vertical-align: top;
		border-bottom-style: solid;
		border-bottom-width: 1px;
		border-right-style: solid;
		border-right-width: 1px;
		padding: 5px 5px 5px 5px;
	}

TD.tditemimg
	{
		vertical-align: top;
		border-bottom-style: solid;
		border-bottom-width: 1px;
		width:40px;
		/*text-align: center;*/
	}

TD.toolbarright
	{
		text-align: right;
	}

H1
	{
		font-family: Segoe UI, Arial, Tahoma, MS Sans Serif, Verdana;
		font-size: 22px;
		font-weight: bold;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 10px 0px;
	}

H1.clk
	{
		font-size: 20px;
		font-weight: bold;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 10px 0px;
		cursor:hand;
	}

H2
	{
		font-size: 14px;
		font-weight: bold;
		padding: 0px 0px 0px 0px;
		margin: 25px 0px 5px 0px;
	}

H2.clk
	{
		font-size: 14px;
		font-weight: bold;
		padding: 0px 0px 0px 0px;
		margin: 25px 0px 5px 0px;
		cursor:hand;
	}

H2.assemblyclk
	{
		font-size: 14px;
		font-weight: bold;
		padding: 0px 0px 0px 0px;
		margin: 5px 0px 5px 0px;
		cursor:hand;
	}

H3
	{
		font-size: 12px;
		font-weight: bold;
		padding: 0px 0px 0px 0px;
		margin: 25px 0px 0px 0px;
	}

HR
	{
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
	}

P
	{
		padding: 0px 0px 5px 0px;
		margin: 0px 0px 5px 0px;
	}

P.medium
	{
		padding: 0px 0px 0px 0px;
		margin: 10px 0px 10px 0px;
	}

LI
	{
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 5px 0px;
	}

P.mnuitem
	{
		margin: 0px 0px 0px 0px;
	}

DIV.subheader
	{
		font-size: 11px;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
	}

DIV.mnuitem
	{
		font-size: 11px;
		padding: 0px 0px 0px 10px;
		margin: 2px 0px 2px 0px;
	}

DIV.clk
	{
		cursor:hand;
	}

DIV.mnuitemclk
	{
		cursor:hand;
		margin: 2px 0px 2px 0px;
	}

PRE.code
	{
		border: 1px solid Gainsboro;
		background-color: WhiteSmoke;
		padding: 10px 10px 10px 10px;
		margin: 0px 0px 0px 0px;
	}
DIV.over
	{
		padding:2;
		height:100%;
		cursor:hand;
		display:inline;
		border: 1 outset LightGrey;
		FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffd553,endColorStr=#fff5d3);
	}
DIV.down
	{
		padding:2;
		height:100%;
		cursor:hand;
		display:inline;
		border: 1 inset LightGrey;
		FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=LightGrey,endColorStr=White);
	}
DIV.out
	{
	
		padding:2;
		height:100%;
		cursor:hand;
		display:inline;
		border: 1 outset LightGrey;
		FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=White,endColorStr=LightGrey);
	}

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
Denmark Denmark

Comments and Discussions