Hi Randar,
Try .First() or .FirstOrDefault() instead of .ToList().
Note that if you are working asynchronously (i.e. Silverlight) you will need to use .AsScalarAsync()
var queryOp = _entityManager.GLAccountTypes
.Where(gla => gla.ID == ID)
.AsScalarAsync()
.First();
Also have in mind that in this case you will need to wait for the callback to be able to retrieve the result (i.e. queryOp does not hold the result)
Silvio.
Edited by sbelini - 13-May-2011 at 10:55am