Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning record versus fields only
Message
De
09/04/2012 18:53:53
 
 
À
09/04/2012 18:31:39
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01540661
Message ID:
01540744
Vues:
49
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()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform