I have EF Query:
IEnumerable<Account> accounts
= (
from a in dc.Accounts
join m in dc.GroupMembers on a.AccountID equals m.AccountID
where m.GroupID == GroupID && m.IsApproved
select a)
.Skip((_configuration.NumberOfRecordsInPage * (PageNumber - 1)))
.Take(_configuration.NumberOfRecordsInPage);
How to write it in fluent nhibernate query with Session.CreateCriteria<>?
(My problem is with Join)
There’s a good answer by phill here – NHibernate QueryOver with ManytoMany which has an example of join with QueryOver
He also describes how to use linq with query over:
So applying the above examples to your query somethign like this might work:
However, to help better understand the issue you are having, could you post what you have attemtpted?