Versions des environnements
Network:
Windows 2003 Server
>>That won't be the case - but whether the overhead of also transferring the unused fields is acceptable will, I guess, depend on how many other fields there are and how the defaults are defined.....
>
>So, the code I have presently still transfer those "not mentioned" fields in the query across the wire.
Yes
>Ok, so, is the code you mentioned in the previous message the approach to go to only have the FirstName and LastName fields to be transferred across the wire or that will not be able at all because I am using a public declaration and not one specific to the query?
The first approach relies on defining a simple public class with just the two fields. The second approach would not be of any use since the anonymous type would not be recognized outside the method in which it is created. There may be other options but I don't know what the 'consumer' of the FirstName/LastName will be - or where it will reside......
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement