PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Designer Generated Code

Reply

Designer Generated Code

 
Thread Tools Rate Thread
Old 22-06-2006, 05:18 AM   #1
=?Utf-8?B?SmVzc2FyZA==?=
Guest
 
Posts: n/a
Default Designer Generated Code


Hi All,

Does anyone know how to modify the rules visual studio (or the designer)
uses to generate it's dataset, datatable, datarow, datatableadapter classes
when you use the wizard to generate a strongly typed dataset from a database
table/stored proc? I want the code that it outputs to be slightly modified.
I do not want to extend or use partial classes to customise the class and I
do not mean that I want to modify the designer generated code by hand. I
want to modify the rules that the designer uses to generate that code. I
have been informed that this is possible but know nothing more. Can anyone
help me with this?

Thanks,
Jesse
  Reply With Quote
Old 23-06-2006, 05:03 PM   #2
Scott Glasgow
Guest
 
Posts: n/a
Default Re: Designer Generated Code

You're looking for the Template directory.

A couple of links that can get you started. Funny...I was playing around
with modifying the templates last night.

http://www.google.com/search?hl=en&...o+templates+vsz
http://msdn2.microsoft.com/en-us/library/ms242498.aspx
http://www.codeproject.com/useritem...te_in_VSNet.asp

"Jessard" <Jessard@discussions.microsoft.com> wrote in message
news:C7B00D31-023D-4092-99C7-692C370CC289@microsoft.com...
> Hi All,
>
> Does anyone know how to modify the rules visual studio (or the designer)
> uses to generate it's dataset, datatable, datarow, datatableadapter
> classes
> when you use the wizard to generate a strongly typed dataset from a
> database
> table/stored proc? I want the code that it outputs to be slightly
> modified.
> I do not want to extend or use partial classes to customise the class and
> I
> do not mean that I want to modify the designer generated code by hand. I
> want to modify the rules that the designer uses to generate that code. I
> have been informed that this is possible but know nothing more. Can
> anyone
> help me with this?
>
> Thanks,
> Jesse


  Reply With Quote
Old 26-06-2006, 12:30 AM   #3
=?Utf-8?B?SmVzc2FyZA==?=
Guest
 
Posts: n/a
Default Re: Designer Generated Code

Thanks for the direction Scott,

I'll look into it.

Jesse

"Scott Glasgow" wrote:

> You're looking for the Template directory.
>
> A couple of links that can get you started. Funny...I was playing around
> with modifying the templates last night.
>
> http://www.google.com/search?hl=en&...o+templates+vsz
> http://msdn2.microsoft.com/en-us/library/ms242498.aspx
> http://www.codeproject.com/useritem...te_in_VSNet.asp
>
> "Jessard" <Jessard@discussions.microsoft.com> wrote in message
> news:C7B00D31-023D-4092-99C7-692C370CC289@microsoft.com...
> > Hi All,
> >
> > Does anyone know how to modify the rules visual studio (or the designer)
> > uses to generate it's dataset, datatable, datarow, datatableadapter
> > classes
> > when you use the wizard to generate a strongly typed dataset from a
> > database
> > table/stored proc? I want the code that it outputs to be slightly
> > modified.
> > I do not want to extend or use partial classes to customise the class and
> > I
> > do not mean that I want to modify the designer generated code by hand. I
> > want to modify the rules that the designer uses to generate that code. I
> > have been informed that this is possible but know nothing more. Can
> > anyone
> > help me with this?
> >
> > Thanks,
> > Jesse

>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off