T
Tony Johansson
Hello!
Below is a DataRelation I have created where we have one primary key on the
parentside which is the Customer
DataRelation custOrderRel = thisDataSet.Relation.Add("custOrders",
thisDataSet.Tables["Customers"].Columns["CustomerID"],
thisDataSet.Tables["Orders"].Columns["CustomerID"]);
Now to my question how do I write a DataRelation if I have a primary key
that consist of two columns.
//Tony
Below is a DataRelation I have created where we have one primary key on the
parentside which is the Customer
DataRelation custOrderRel = thisDataSet.Relation.Add("custOrders",
thisDataSet.Tables["Customers"].Columns["CustomerID"],
thisDataSet.Tables["Orders"].Columns["CustomerID"]);
Now to my question how do I write a DataRelation if I have a primary key
that consist of two columns.
//Tony