I have the following code:-
public IQueryable GetPerson(int PersonID) { var Details = from pers in db.People where pers.ID == PersonID select new { Name = item.NAME, Email = item.EMAIL }; return Details } I don't want to return a specific Type from the data access code above.
Then I want to do something like:
IQueryable Person = dal.GetPerson(PersonID); PersonEmail = Person.EMAIL; - but this obviously doesn't work ?? Any ideas on how I can get the field data from the Person IQueryable object ?