What is the proper way to pass an answer (a collection) back to Silverlight?
For example, if I have a service application that sits on top of the Northwind sample database and the service has a method called GetEmployees(). What is the proper "thing" to pass back to Silverlight? An IQueryable ?
Then considering the Async/Result casting stuff on the Silverlight side what do I cast it too? An IQueryable ?
UPDATE:
Is it the declaration of
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] that allows a remote client to see the structs (entities) from a service?? I didn't know there was such thing as a Silverlight-friendly-WCF class so thats not what I started with. Once I added that attribute in the solution wouldn't let me use the service any more without it. So I could not test what I was seeing before. Any thoughts on what AspNetCompatibilityRequirementsMode.Allowed does under the hood?
UPDATE 2:
See comments to Terry Donaghe.