Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public IList<Machine> GetMachineByBuilding(int buildingId, int siteId)
  2. {
  3. var machineList = context.Machine.Where(x => x.SiteId == siteId && x.AreaMachines.Any(y => y.Area.Cells.BuildingId == buildingId)).ToList();
  4. return machineList;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement