The only solution I found, when using lots of nested datatables, was to
ditch them altogether and use pocos with some kind of persistence framework.
Yes, steeper learning curve, but much more flexible (and powerful) than
datasets. Also, imo, a much more natural way to work.

-Jamie

On 24 Feb 2010 17:42, "ThanderMaX" <[email protected]> wrote:

@Doug :   One helpful advise before you try to save whole Dataset full
of interrelated tables (with many foreign key constraints) ,

If you try to save it using cascade-update-delete and get transaction
error from deep within generated table adapter code , try disabling
the constraint before saving because it might issue constraint failure
due to nested table constraints.

Also I have seen VS generated table adapter code to hang while
committing the transaction  due to nested table constraints.
After a lot of debugging I found it tries to sort the constraints
according to hierarchy , for example Dataset with tables having more
than 2-3 foreign key constraints repeatedly hanged in that sorting
loop.
Still could not find any good solution to that problem , I had to
manually patch the code :(

In the end, it all depends on you Dataset schema and relations.


Wish you good luck.




On Feb 24, 9:43 am, Arsalan Tamiz <[email protected]> wrote:
> http://blogs.msdn.com/bethmassi/archive/2007/07/11/tableadapters-and-...

>
> On Feb 24, 2:04 am, "Charles A. Lopez" <[email protected]>
> wrote:
>
> > I've been away. ...

Reply via email to