Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datarelation questions...
Message
De
16/07/2003 17:50:32
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Datarelation questions...
Divers
Thread ID:
00810871
Message ID:
00810871
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform