Ajit Kumar
write a lambda expression to get detail of employee having id=5.
By Ajit Kumar in LINQ on Oct 10 2012
  • Dharmendra Singh
    Jun, 2013 10

    employee.Find(m => m.EmId == 5);

    • 1
  • Manoj Singh
    Aug, 2023 25

    EmployeeEntities db = new EmployeeEntities();var result = db.Employees.Where(n=>n.Emp_ID==5).ToList();foreach(Employee empDetails in result)Console.WriteLine("Id= " empDetails.Emp_ID ", Name= " empDetails.Emp_Name ", Salary= " empDetails.Emp_Salary);Console.ReadKey();

    • 0
  • Veerabhadra Rao  Samudrala
    Jun, 2015 9

    var filterEnumerable = from emp in employeeswhere emp.id == 5select emp;

    • 0
  • Dharmendra Singh
    Jun, 2013 10

    employee.Find(m => m.EmId == 5);

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS