Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from p in new DbContext()
- where p.user_id = 123
- && p.StartDateTime != null
- && p.FinishDateTime != null
- select new {p.StartDateTime, p.FinishDateTime})
- .Average(x=> (p.FinishDateTime.Value - p.StartDateTime.Value).Ticks)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement