Environment versions
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......
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only