This post is a follow-up to an article I wrote a few weeks ago, ADO.NET Entity Framework Comparison Frustration. As a quick re-cap, I was simply trying to filter a list of users with a LINQ query expression by comparing custom classes, not primitive types.
TorvusEntities entities = new TorvusEntities();
// Pull my Account Entity from the database
Account matt = entities.Accounts.First(a => a.AccountId == 10);
// Attempt to get all Teams by a Team Owner
var teams = from t in entities.Teams
where t.Owner == matt
...