Home All Groups Group Topic Archive Search About

Customizing codegeneration of typed tableadapter

Author
17 May 2006 6:24 PM
henk gijsbert
I would like to inject one line of code in the update methods of
generated tableadapters (to call a validationmethod on DataSets and
DataTables that I define using partial classes).

Can this be accomplished? (This would be nicer than having to subclass
every generated tableadapter and override the update methods)

Regards,
Henk

Author
17 May 2006 11:32 PM
PeterKellner
On 17 May 2006 11:24:04 -0700, "henk gijsbert" <h**@paralax.nl> wrote:

>I would like to inject one line of code in the update methods of
>generated tableadapters (to call a validationmethod on DataSets and
>DataTables that I define using partial classes).
>
>Can this be accomplished? (This would be nicer than having to subclass
>every generated tableadapter and override the update methods)
>
>Regards,
>Henk

Can't you just go into the dataset editor in VS2005 and edit the
update query how you want it?
Peter Kellner
http://peterkellner.net
Author
18 May 2006 6:34 AM
henk gijsbert
No, that would mean editing generated code. At regeneration your code
is gone. Besides, I want to be sure nobody can forget it.

AddThis Social Bookmark Button