Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set relation on more than one field
Message
De
09/04/2008 10:27:21
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01309280
Message ID:
01309328
Vues:
8
This message has been marked as the solution to the initial question of the thread.
>Hi All, how do I create a relation ( using ADO ) using more than one field ( apart from concatenating them in the query )

In ADO.NET you can create "calculated" columns:
// The TestCalc column concatenates two existing columns, Code and Description
this.oData.Columns.Add("TestCalc");
this.oData.Columns["TestCalc"].Expression = "iif(description is null, Code, Code + Description)";
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform