Ramco Ramco

Ramco Ramco

  • 469
  • 2.8k
  • 393.2k

Linq Query

Jul 3 2022 4:37 PM

Hi

  I have below query . I want if same book occurs more than once then only first record should be displayed. Book is in alias t

List<View_Detail> Result = (from t in context.View_Details
                                                               join t2 in context.View_Session
                                                               on t.SessionPlanID equals t2.SessionPlanID
                                                               
                                                               select t).ToList();

 

Thanks


Answers (1)