public class User
{
public int Id;
public List<int> GroupAccessList;
...
}
public class Report
{
public int Id;
public int GroupId;
public string DataItem1;
...
}session.Query<Report>().Where(r => r.GroupId.In(User.GroupAccessList));
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
return session.Query<ReportModel>() .Where(r => r.GroupId.In(groupIDList))
.Where(r => r.CreatedAt >= beginDateTime && r.CreatedAt <= endDateTime)
.Where(r => r.RequiresReview == queryRequiresReview)
.OrderBy(r => r.Status)
.ThenByDescending(r => r.CreatedAt).Skip(recordsToSkip)
.Take(recordsToTake)