Using Non-Primitive Types in ServiceOperation for WCF Data Service (3.5SP1)

Is it even possible to create a mock entity type for use in the WCF service?

We have some requests that we make that we need to optimize by exposing them as ServiceOperation. The problem is to do this, we get a very long list of primitive types ...

Example

  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)

It will also help us when it comes time to write some complex queries, since there is a limit on 3 parameters ...

I saw that this would be possible in 4.0 using "complex types", but I'm still in the 3.5SP1 world.

Let me know if anyone needs more information.

So this is confirmed not possible in 3.5 or 4.0! Officially, he is not!

http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/771587aa-0822-4991-8a3f-0091de044b5c

+3

Source: https://habr.com/ru/post/1741083/


All Articles