Ramco Ramco

Ramco Ramco

  • 440
  • 3.4k
  • 515.9k

Combine 2 fields in Linq

Apr 6 2023 5:45 AM

Hi

  I have below data and i want to get StudentId, Name+MobileNo

var Result = (from t2 in context.View_SessionDeliveryCalendarDetails_Students
                               where t2.MentorID == Convert.ToInt32(ddlMentor.SelectedItem.Value)
                               select new { t2.StudentID,t2.Name,t2.MobileNo}).Distinct().ToList();

Thanks


Answers (1)