1
Answer

Linq Query

Ramco Ramco

Ramco Ramco

2y
667
1

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)