jonpryor / dblinq2007

Automatically exported from code.google.com/p/dblinq2007
0 stars 0 forks source link

DCR: Need support for string[].Contains(string) #328

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
THere is presently no supported way to do-

string[] names = {fred, joe, sam };

return (from p in db.GetTable<People>()
        where names.Contains(p.Name)
        select p).ToArray()

What is the expected output? What do you see instead?
No operator is defined for the 'Contains' method and query execution is haulted.

What version of the product are you using? On what operating system?
DbLinq 0.20.0 targeting MySql.Data 6.4.4.0

Please provide any additional information below.
If you need any more info visit my blog
http://wasntnate.com/2012/02/crashing-dblinq-with-embedded-query/ 

Original issue reported on code.google.com by itsnatet...@gmail.com on 23 Feb 2012 at 5:43