Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. from p in new DbContext()
  2. where p.user_id = 123
  3. && p.StartDateTime != null
  4. && p.FinishDateTime != null
  5. select new {p.StartDateTime, p.FinishDateTime})
  6. .Average(x=> (p.FinishDateTime.Value - p.StartDateTime.Value).Ticks)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement