Hi Alex,
"Alex Berryhill" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> This might seem naive, but been spending quite a bit of time on this;
> was wondering if anyone could help me out here.
>
> My problem is as follows:- I have an (MS Data Access Applications
> Blocks-generated) untyped dataset that has data grabbed from the
> database. I need to convert it into (an already defined) strongly
> typed dataset, but one with a foreign key constraint enabled in it
> (that is, it has two tables). Any simple way of doing this?
>
> I had, previously, done that for single-table-datasets by declaring
> the table name (of the untyped dataset) to be the same as that of its
> strongly typed equivalent, and then doing a Merge() for both. I,
> obviously, can't do the same thing over here, mainly because of the,
> you guessed it, foreign key constraint.
Why not?
I mean if you want to have a relation between table it won't let you have
"bad" data because relation enforces consistency.
--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com