Advertisement
joy007

Edit query

Jul 27th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. public async Task<IActionResult> Edit(int? id)
  2. {
  3. if (id == null)
  4. {
  5. return NotFound();
  6. }
  7.  
  8.  
  9.  
  10. var postOperative = await _context.PostOperative
  11. .AsNoTracking()
  12. .Include(x => x.PostOperativeEventsComplications).Where(x => x.Id == id)
  13. .Include(x => x.PostOperativeSurgicalComplications).Where(x => x.Id == id)
  14. .Include(x => x.PostOperativeSurgicalWounds).Where(x => x.Id == id)
  15. .Include(x => x.PostOperativeInfectiousComplications).Where(x => x.Id == id)
  16. .Include(x => x.PostOperativeCardiacComplications).Where(x => x.Id == id)
  17. .Include(x => x.PostOperativePulmonaryComplications).Where(x => x.Id == id)
  18. .Include(x => x.PostOperativePulmonaryComplicationsChild).Where(x => x.Id == id)
  19. .Include(x => x.PostOperativeKidneyUrogenital).Where(x => x.Id == id)
  20. .Include(x => x.PostOperativeHepaticDysfunctions).Where(x => x.Id == id)
  21. .Include(x => x.PostOperativeGitComplications).Where(x => x.Id == id)
  22. .Include(x => x.PostOperativeNeurologicDysfunctions).Where(x => x.Id == id)
  23. .Include(x => x.PostOpeativeThromboEmbolicComplications).Where(x => x.Id == id)
  24. .Include(x => x.PostOpeativeOtherComplications).Where(x => x.Id == id)
  25. .Include(x => x.PostOpeativeOtherComplicationsChild).Where(x => x.Id == id)
  26. .Include(x => x.PostOperativePharmacologyArrivalPcicu).Where(x => x.Id == id)
  27. .Include(x => x.PostOperativeTemperatureMeasurementOne).Where(x => x.Id == id)
  28. .Include(x => x.PostOperativeTemperatureMeasurementTwo).Where(x => x.Id == id)
  29. .Include(x => x.PostOperativeSitePacemaker).Where(x => x.Id == id)
  30. .Include(x => x.PostOperativeTypeTemporaryPacing).Where(x => x.Id == id)
  31. .Include(x => x.PostOperativeExtubation).Where(x => x.Id == id)
  32. .Include(x => x.PostOperativeExtubationChild).Where(x => x.Id == id)
  33. .Include(x => x.PostOperativeInotropicVasoactive).Where(x => x.Id == id)
  34. .Include(x => x.PostOperativeInotropicVasoactiveChild).Where(x => x.Id == id)
  35. .FirstOrDefaultAsync();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement