Using non primitive types in ServiceOperation for WCF Data Service (3.5SP1)
Posted
by Nix
on Stack Overflow
See other posts from Stack Overflow
or by Nix
Published on 2010-04-14T12:30:29Z
Indexed on
2010/04/14
12:33 UTC
Read the original article
Hit count: 399
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.
© Stack Overflow or respective owner