Advertisement
Guest User

something

a guest
Dec 11th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. IEnumerable<string> query1 =
  2. from client in clients
  3. select client;
  4.  
  5. IEnumerable<string> query2 =
  6. from company in companies
  7. select company;
  8.  
  9. IEnumerable<string> query3 =
  10. from user in users
  11. select user;
  12.  
  13. IEnumerable<string> query4 =
  14. from user in users
  15. where user.StartsWith("a")
  16. select user;
  17.  
  18. IEnumerable<string> query5 =
  19. from client in clients
  20. where client.phone != null
  21. select client;
  22.  
  23. IEnumerable<string> query6 =
  24. from user in users
  25. where user.isAdmin == true
  26. select user;
  27.  
  28. IEnumerable<string> query7 =
  29. from company in companies
  30. where company.city == "Gliwice"
  31. select company;
  32.  
  33. IEnumerable<string> query8 =
  34. from user in users
  35. where user.isAdmin == false
  36. select user;
  37.  
  38. IEnumerable<string> query9 =
  39. from client in clients
  40. where client.phone == null
  41. select client;
  42.  
  43. IEnumerable<string> queryOrder =
  44. from result in results
  45. orderby result
  46. select result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement