Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set relation on more than one field
Message
From
09/04/2008 10:27:21
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01309280
Message ID:
01309328
Views:
7
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform