2
Answers

How to store the results of Linq Query in Datatable

Ramco Ramco

Ramco Ramco

1y
571
1

Hi

  How to store the results of Linq Query in Datatable

List<View_SessionBookPlanningRecommendation> Result = (from t in context.View_SessionBookPlanningRecommendations
                                                                       orderby t.StudentID
                                                                       where StudentCollection.Contains(t.StudentID.ToString())
                                                                       select t).ToList();

Thanks

Answers (2)