score:2

Accepted answer

actually, due to the clause where 0 = 1 this sql will return an empty recordset (i.e. correctly mapped in terms of the schema, but with no rows).

the code you give seems correct, but something has convinced the query provider that there can never be a matching row.

assuming it's not correct in this, i'd look at the column mapping for the id property. does it match that of the database correctly?

score:0

probably your list is coming empty, this is the normal behavior of linq.

score:0

try this:

dim strval as string = ""
dim strnum(30) as string

strval = "1,2,3,4,5,6,7,9"

strnum = strval.split(",")

originaleventstoupdate = (from a in db.tbl_ffk_event where strnum.contains(a.id) select a).tolist

More Query from same tag