Or, even better, you could use the classes in the System.CodeDom
namespace to generate the code structure for you.
You can also create an instance of the MSDataSetGenerator class in the
assemblies in the VS.NET IDE directory. You can use those to generate the
code wrappers for the stored procedures yourself.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"cfps.Christian" <ge*******@otc.eduwrote in message
news:51**********************************@f13g2000 hsa.googlegroups.com...
On Nov 15, 11:25 am, "Jeff" wrote:
>Hey
.NET 2.0
I'm on a project where I'm now about to develop the Data Access Layer.
The
database have 300 stored procedures. I'm about to go on a time consuming
process of writing the .NET code which calls all these stored procedures.
Each stored procedure should get it's own method in the Data Acess
Layer..
can this be automated, so for example VS2005 generates the code
automatically? any links about it?
I hope this can be automated a bit, so it can save me time....
all suggestions are welcome :)
Jeff
If you're talking about automating the code writing you could always
cheat and code a loop through each of the stored procedures from one
of the system tables that will write the syntax of a function to a
textfile then copy the text into the editor.