title: WCF RIA Services - Passing a custom object to a query method as parameter
body: <p>I want to pass a custom class as parameter to the query method which returns me a collection of entities. I need something like this </p>
  
  <pre><code>[Query]
  public IEnumerable&lt;MyEntity&gt; Search(SearchParams params)
  {
   //do something here
  }
  
  public class SearchParams
  {
    public string FilterParam1 {get; set;}
    public string FilterParam2 {get; set;}
    public string FilterParam3 {get; set;}
    public string FilterParam4 {get; set;}
    public string FilterParam5 {get; set;}
  ...and so on...
  }
  </code></pre>
  
  <p>I tried making SearchParams class available at client side using shared code. But the problem is that no operation(query or invoke) let me create a method where I can pass SearchParams class as it is not a native serializable type.
  I have about 15 properties in SearchParams class like this.</p>
  
  <p>I do not want to create a Query operation with 15 parameters. 
  Please suggest is there's a good workaround for that.</p>