You can also try this, I think it's a little cleaner.
var orderLine = db.OrderLines.Single( ol => ol.ID == orderLineID );
var order = orderLine.GetOrder();
I beileive in your non-working example you want to use .First()
instead of .Single()
.
Jerod Houghtelling
2010-08-24 16:38:20