title: Using non primitive types in ServiceOperation for WCF Data Service (3.5SP1)
body: <p>Is there any way at all to create a "mock" entity type for use in a WCF Service Operation?</p>
  
  <p>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...</p>
  
  <p>Ex</p>
  
  <pre><code>  SomeoneHelpMe(int time, string name, string address, string i, string purple, string foo, int stillGoing, int tooMany, etc...)
  </code></pre>
  
  <p>And we really need to reduce this to</p>
  
  <pre><code> SomeoneHelpedMe(CustomEntityNotMappedToAnything e)
  </code></pre>
  
  <p>This would also help us when it comes time to write some complex queries since there is a 3 param limitation...</p>
  
  <p>I saw this will be possible in 4.0 using "complex types", but i am still in the 3.5SP1 world.</p>
  
  <p>Let me know if anyone needs more information.</p>
  
  <p>So this is confirmed not possible in 3.5 or 4.0!
  Officially its a no!</p>
  
  <p><a href="http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/771587aa-0822-4991-8a3f-0091de044b5c" rel="nofollow noreferrer">http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/771587aa-0822-4991-8a3f-0091de044b5c</a></p>