"The name 'item' does not exist in the current context" [modified]
-
Hi everbody :doh:
IQueryable myObjs = ....;
var result =
from item in myObjs.Where(SearchKeyPredicate().And(AndKeyPredicate(item)))
select item;I know this code is wrong and studio doesn't build it:(of course) ERROR = "The name 'item' does not exist in the current context" I need each items to use in "AndKeyPredicate(item)" How can I take the item in this code part? Or How can I know that which item of myObjs.Where(?) is running? thanx...
modified on Thursday, July 17, 2008 10:23 AM
-
Hi everbody :doh:
IQueryable myObjs = ....;
var result =
from item in myObjs.Where(SearchKeyPredicate().And(AndKeyPredicate(item)))
select item;I know this code is wrong and studio doesn't build it:(of course) ERROR = "The name 'item' does not exist in the current context" I need each items to use in "AndKeyPredicate(item)" How can I take the item in this code part? Or How can I know that which item of myObjs.Where(?) is running? thanx...
modified on Thursday, July 17, 2008 10:23 AM
How about
from item in myObjs
where SearchKeyPredicate().And(AndKeyPredicate(item)
select item;Life, family, faith: Give me a visit. From my latest post: "We are Christian, resistance is futile. Your Jewish traits will be assimilated into the Church collective." Judah Himango
-
How about
from item in myObjs
where SearchKeyPredicate().And(AndKeyPredicate(item)
select item;Life, family, faith: Give me a visit. From my latest post: "We are Christian, resistance is futile. Your Jewish traits will be assimilated into the Church collective." Judah Himango
-
Cannot implicitly convert type 'System.Linq.Expressions.Expression<myobject,bool>>' to 'bool'
I can't determine your problem because I don't know what your code does regarding the And stuff. You'll need to post your code.