Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning record versus fields only
Message
De
09/04/2012 14:29:55
 
 
À
09/04/2012 14:02:23
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:
01540707
Vues:
39
>>The exeption says it all. You are requiring a return type of ClientAPI.ClientService.Client but the select is generating an anonymous type.
>
>The OfType approach was needed. See message #1540670 for more info.

That makes no sense to me. If you are assigning to a type of ClientAPI.ClientService.Client then the result must be of that type (or derived from it). In your code that would not be the case. Can you post enough code to show a working example....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform