Maybe I’m somewhat over-worked … I’m lost in a project where I use EF4 for the DB stuff.
As such, it does work indeed well to retrieve a complete list of an entity.
But when I try to do some filtering, I don’t get it…
I have the following code, where I get in big trouble
public class InfoViewModel
{
private TrackerEntities _context;
public InfoViewModel (int ticketID)
{
var ct = new TrackerEntities();
var res = from t in ct.Tickets
where t.TicketID // VS2010 can't evaluate the property 'TicketID'
select t;
}
}
I do not understand why t.TicketID throws me the wavy red line with the error message
“Can not resolve symbol ‘TicketID'”
The symbol is declared in the EDMX file, with public getter and setter…
In fact, it looks like nothing of the entity is known in my class.
Why?
TIA
DeepCore
Doh…
I’m feeling really dumb… I have found my mistake!
Somehow the following using statement went missing :o(
I think, I have to ask for some vacation.
Thank you all for investing your time to help me!
DeepCore