parameter lists

Nov 15, 2012 at 4:40 PM
Edited Nov 15, 2012 at 4:41 PM


When I implement the equivalent of the code below I get this exception message:

An expression of non-boolean type specified in a context where a condition is expected, near ')'.

Unfortunately I can't see the sql that's being generated to see what's up.



List<int> ids = new List<int>() { 1, 2, 3, 4 };

dynamic products = Context().Sql(@"select * from Product
			where ProductId in(@0)", ids).Query();

Nov 25, 2012 at 11:29 PM

Can you give me your SQL and database schema? Then I will try it locally and fix it.