Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 529.9k

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)