Hi
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
[Query] public IEnumerable 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... } 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.
I do not want to create a Query operation with 15 parameters. Please suggest is there's a good workaround for that.