NHibernate QueryOver Issue

Posted by Yoann. B on Stack Overflow See other posts from Stack Overflow or by Yoann. B
Published on 2010-06-13T01:51:30Z Indexed on 2010/06/13 2:02 UTC
Read the original article Hit count: 296

Filed under:
|

Hi,

I've a query that works well with the NH 3.0 LINQ Provider but not with the QueryOver API.

I got a "could not resolve property : Profile.Customer.CustomerId" Exception

    var query = Session.QueryOver<Suggest>()
        .Where(p => p.Profile.Customer.CustomerId == customerId)
        .And(p => p.Job.Customer.CustomerId != customerId);

    var total = query.RowCount();

Any help ?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate