Ramco Ramco

Ramco Ramco

  • 457
  • 3k
  • 422.1k

How to store the results of Linq Query in Datatable

Apr 25 2023 4:59 PM

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)