parameter lists

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

Hi,

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.

Cheers

 

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

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


Nov 26, 2012 at 12:29 AM

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