Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. foreach(var currentJob in ttJobHead)
  2. {
  3. foreach (var hdCase in Db.HDCase.Where(hdCase => hdCase.HDCaseNum == currentJob.HDCaseNum))
  4. {
  5. currentJob.ProjectID = hdCase.ProjectID;
  6. }
  7. }
  8.  
  9. foreach(var t1Row in Table1)
  10. {
  11. foreach (var t2Row in Table2.Where(r => r.Property1 == t1Row.Property1))
  12. {
  13. t1Row.Property2 = t2Row.Poperty2;
  14. }
  15. }
  16.  
  17. var currentJob = ttJobHead.Single();
  18. foreach(var hdCase in Db.HDCase.Where(hCase => hCase.HDCaseNum == currentJob.HDCaseNum))
  19. {
  20. hdCase.ProjectID = currentJob.ProjectID;
  21. }
  22.  
  23. foreach(var currentJob in ttJobHead)
  24. {
  25. var hdCase = Db.HDCase.Where(hdCase => hdCase.HDCaseNum == currentJob.HDCaseNum).Last();
  26. if (hdCase != null)
  27. {
  28. currentJob.ProjectID = hdCase.ProjectID;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement