Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning record versus fields only
Message
From
09/04/2012 18:53:53
 
 
To
09/04/2012 18:31:39
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01540661
Message ID:
01540744
Views:
48
This message has been marked as the solution to the initial question of the thread.
The syntax is C# and I wasn't sure if it was valid or not with VB. Basically what it does is create a new ClientAPI.ClientService.Client and set the FirstName and LastName properties based on the values you select. I think the following might be the correct VB syntax:
oClient = (From c
                 In oGeneric.GetClients()
                 Where c.Id = nClientID
                 Select new ClientAPI.ClientService.Client With { .FirstName = c.FirstName, .LastName = c.cLastName} ).FirstOrDefault()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform