Customizing codegeneration of typed tableadapter

  • Thread starter Thread starter henk gijsbert
  • Start date Start date
H

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
 
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
 
No, that would mean editing generated code. At regeneration your code
is gone. Besides, I want to be sure nobody can forget it.
 
Back
Top