EF query to fluent nhibernate query

Posted by Shlomi Levi on Stack Overflow See other posts from Stack Overflow or by Shlomi Levi
Published on 2012-06-02T10:36:50Z Indexed on 2012/06/02 10:41 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

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)

Regards,

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about query