Guest User

Untitled

a guest
Feb 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var results = session.Query<DocumentLog>()
  2. .Where(x => x.action_type_cd == activity &&
  3. x.action_date >= DateTime.Now.Date.AddDays(daysBack))
  4. .GroupBy(ts => new { ADate= ts.action_date.Date,ts.doc_id,ts.user_id,ts.action_type_cd })
  5. .Select(g => new { g.Key.doc_id, g.Key.user_id, g.Key.action_type_cd, g.Key.ADate, Cnt = g.Count() });
Add Comment
Please, Sign In to add comment