I'm new to EF and I'm having trouble doing the simplest thing...
public class Person : DTO
{
public String ID { get; set; }
public String Fname { get; set; }
public String Lname{ get; set; }
}
I would like to use either IQueryable<Person> or ObjectReuslt<Person> to extract Fname from my object.
peopleEntities entities = new peopleEntities();
string queryStr = "select value c from peopleEntity.Person as c Where c.ID=" + personID;
IQueryable<EntityObject> query = entities.CreateQuery<EntityObject>(queryStr);
I see that CreateQuery can both return IQueryable and ObjectResult. I'd like to know whats the lightest way that I can extract Fnames into a list from my query result.