using (var context = new PostBoard()) {
var projectresult = context.projects.Select(pro => new {
pro.id,
pro.participant_name,
pro.moderator_name,
pro.start_date,
pro.end_date,
pro.account_id,
discussion_sections = pro.discussion_sections.Select(ds => new {
ds.id,
ds.title,
ds.project_id
}).Where(ds => ds.project_id == pro.id)
}).Where(pro => pro.id == id);
var test = projectresult;
}
When I try and debug and view projectresult results when its being assigned to test I am getting an error stating that there is already an open data reader.