Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

So I have like 20 typed datasets (about 200 to follow over the next year), and want to create a single generic class to handle generic inserts/updates/deletes with error handling in a constant way... and I'd forgotton about this, but there aren't any table adapters in 2005.

 

In 2005 each Typed Dataset has it's own custom DataAdaptor which only have a common type of Component. So that makes it awfully hard to generically do this.

 

The best I can think of off the top of my head is to create an Interface for DataAdaptors.

Posted

Wow do I feel dumb.

 

The first think I do is go to create ITableAdapter and it already exists and is in use by Typed DataAdapters. So apparently my idea worked only I didn't have to create my own Interface :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...