Using non primitive types in ServiceOperation for WCF Data Service (3.5SP1)
- by Nix
Is there any way at all to create a "mock" entity type for use in a WCF Service Operation?
We have some queries we do that we need to optimize by exposing as a ServiceOperation. The problem is in order to do so we would result in a very long list of primitative types...
Ex
SomeoneHelpMe(int time, string name, string address, string i, string purple, string foo, int stillGoing, int tooMany, etc...)
And we really need to reduce this to
SomeoneHelpedMe(CustomEntityNotMappedToAnything e)
This would also help us when it comes time to write some complex queries since there is a 3 param limitation...
I saw this will be possible in 4.0 using "complex types", but i am still in the 3.5SP1 world.
Let me know if anyone needs more information.