i am new to VB.net. i need to create two Foreign Key Constraints. i am able to create a single constraint but unable to two constraints.
Syntax for one foreign key constraints.
ds.Tables(1).Constraints.Add("FK", ds.Tables(0).Columns(1), ds.Tables(1).Columns(1))
I need to reference two columns from the parent table as foreign key in the child table
Any help would be highly appreciated

Asish Raj11 reputationPosted Aug 9, 2007, 1:17 PM EDT
Thanks for the help.
Jan MontanoRank #1,295 · 1.3K reputationPosted Aug 9, 2007, 9:20 PM EDT
I'm interested with your solution. Could you please post your solution? Thanks.
Regards,
Jan
Asish Raj11 reputationPosted Aug 13, 2007, 8:33 PM EDT
dsTimeCard.Tables("TimeCardDetails").Constraints.Add("TimeCardDetailsFK",
New DataColumn() {All Pks}New DataColumn() {All Fks})All da best mate.