Guest User

Untitled

a guest
Jun 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public IList<Employee> FindByLastName(string lastName)
  2. {
  3. IList<Employee> emps;
  4. var e = from emp in _ctx.Employees where emp.LastName == lastName select emp;
  5. emps = e.ToList<Employee>();
  6. return emps;
  7. }
  8.  
  9. public IList<Employee> GetEmployeeById(int id, bool includeOrders)
  10. {
  11.  
  12. }
  13.  
  14. public IList<Employee> FindByLastName(string lastName)
  15. {
  16. return _ctx.Employees
  17. .Include("Orders")
  18. .Where(emp => emp.LastName == lastName)
  19. .ToList();
  20. }
  21.  
  22. public IList<Employee> FindByLastName(string lastName)
  23. {
  24. IList<Employee> emps;
  25. var e = from emp in _ctx.Employees.Include("Orders") where emp.LastName == lastName select emp;
  26. emps = e.ToList<Employee>();
  27. return emps;
  28. }
Add Comment
Please, Sign In to add comment