The ObjectSet.Single(predicate) doesn't work (the Where() and toList() methods as well) unless i write it this way:
ObjectSet.Cast<TEntity>().Single<TEntity>(predicate)
But i don't know what to do to resolve the problem with the AddObject and DeleteObject methods:
public void Add<TEntity>(TEntity entity)
{
ObjectSet.AddObject(entity);
}
The error message tells me that "entity" is a wrong argument. Is the problem related to EF 4.1?