linq query error
-
hi, i am using the following linq query against a view of two joined (inner) tables and it throws an error. i have pasted both below. Please provide help: var q = from a in db.GetTable() where a.model_id=id select a; throws an error: cannot convert implicitly to type int to bool Why is it throwing this error...Please help best regards
haseeb
-
hi, i am using the following linq query against a view of two joined (inner) tables and it throws an error. i have pasted both below. Please provide help: var q = from a in db.GetTable() where a.model_id=id select a; throws an error: cannot convert implicitly to type int to bool Why is it throwing this error...Please help best regards
haseeb
you have to use a.model_id== id rather than a.model_id=id Vishal Gupta http://openreferals.com/Profiles/Profile.aspx?AccountID=14[^]
-
you have to use a.model_id== id rather than a.model_id=id Vishal Gupta http://openreferals.com/Profiles/Profile.aspx?AccountID=14[^]
thanx it worked
haseeb