Foreign key handeling in datasets

witzulu
12-20-2003, 09:54 AM
When creating a new row in my dataset is thier any other method I can use when the table I am working with contain a foreign key. I can't seem to find a way other than the method below(I think it is wrong) to handel the foreign key due to constraint violations.


Currently I am putting all the info(foreign key and any needed data) into to a datarow and then enter the row in at the same time.

I am new to ADO.net and is quite lost.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum