Can anybody explain why I don't see the (my) expected output for the WriteLine? I can see it when I'm debugging it in VS and refresh the 'result' to see its content in my Local window inside VS. THX
Func<Category, bool> del = (Category cat) => {
System.Console.WriteLine(cat.CategoryName);
return cat.CategoryID > 1;
};
NorthwindEntities nw = new NorthwindEntities();
var result = nw.Categories.Where<Category>(del);
Console.Read();