.Net & SharePoint '07

Technical blog for .Net and all SharePoint 2007 related Information

About the author

Me(Prince) and my wife are B.E in I.T & C.S.E respectively.  I a certified MCPD: Web from 2007 Dec. I am Intrestes in Web Application, MOSS, EPM, etc.
Now working with Deira International School, as IT Application & Help Manager. I have started my career as "Software Developer" @  REACH Sewn Technologies and Consulting Pvt. Ltd, Bangalore India from Oct 2004 to Feb 2006, then as "Web & Intranet Developer" @ Fosroc International Ltd, Dubai from April 2006 to Sep 2009.
You can catch me on mail@jpy-tech.com or mail@princepy.com. Or on 00971 - 50 - 4284530 

Google Translate

Tag cloud

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

RecentComments

Comment RSS

Google Your Location


SQL 2005 Vs C# : Dynamically generate Class File With Stored Procedure for a Table

When we are writing modules for a big project we might find difficult to write the basic class file with stored procedure for function like Insert, Update, Delete and Select. But Imagine how use full that, you are passing the "TABLE NAME", "CLASS NAME", "NAMESPACE" to a SQL script file, That will Generate the entire class file(in c#) with Stored procedure for that.

Their are some basic rules.

  • Table should HAVE primary kwy which is int, auto increment by 1

I had used some common Columns for all tables link

  • CREATED_BY int
  • CREATED_ON datetime (Default value "GETDATE()")
  • UPDATED_BY int
  • UPDATED_ON datetime (Default value "GETDATE()")
  • ISDELETED bit (Default value "0")
  • STATUS bit (Default valus "1")


Categories: c# | SQL 2005
Posted by admin on Thursday, November 06, 2008 10:41 AM
Permalink | Comments (0) | Post RSSRSS comment feed