Thank you, you helped me a lot :) :)
I did it as Vitek Karas said.
1) Download dynamic query library Check link
No need to read, just download the dynamic query library
2) Check out the DynamicQuery project. In it you will find the Dynamic.cs class. Copy it to your project
3) Create your own project (if you use silverlight, an error will appear that says ReaderWriterLock was not found. Do not be afraid. Just comment or delete lines that make mistakes (6 or 7 lines that make mistakes in total))
4) All you need now to write a request Example: ordersContext.CLIENTS.Where(" NUMCLI > 200 || NUMCLI < 20");
Done. If you need to use the Contains method, you just have to write a method that iterates over your array and returns the string that your query will use.
private string MyFilter() { string st = ""; foreach(var element in myTab) { st = st + "ThePropertyInTheTable =" + element + "||"; } return st; }
I hope you understand me and I helped someone :)
ihebiheb
source share