Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datarelation questions...
Message
From
16/07/2003 17:50:32
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Datarelation questions...
Miscellaneous
Thread ID:
00810871
Message ID:
00810871
Views:
42
If 2 tables are related using the dataRelation object,
do deletes cascade through the established in memory relationship?

Can you related more that 2 tables using a single DataRelation Object?
will the code below work?


DataColumn Tables;
DataColumn Chairs;
DataColumn TablesToChairs;
// Code to get the DataSet not shown here.
Tables = DataSet1.Tables["Tables"].Columns["TableID"];
TablesToChairs = DataSet1.Tables["TableToChairRel"].Columns["TableID"];
Chairs = DataSet1.Tables["Chairs"].Columns["ChairID"];
// Create DataRelation.
DataRelation relTablesToChairs;
relTablesToChairs = new DataRelation("CustomersOrders", Tables, TableToChair,Chairs);
// Add the relation to the DataSet.
DataSet1.Relations.Add(relTablesToChairs);

Thanks for your help,

Alvin
Next
Reply
Map
View

Click here to load this message in the networking platform