kaptan
kaptan

Reputation: 3149

nHibernate Linq join support; The method Join is not implemented

I am using the latest nHibernate.Linq 2.1.2. But if I use join in my linq query I will get run time error

"The method Join is not implemented"

Is join supported by nHibernate.Linq and if it is supported what is the cause of this error?

Upvotes: 1

Views: 3728

Answers (1)

Dion
Dion

Reputation: 954

Doesn't look like Joins are supported in the current version of Linq to Hibernate.

See post from Adam Aldrich's Blog here

I worked around it using two linq queries within my session. The first one selected from the one table and the second from the second table using the values of the first result to constrain my query. Not as efficient as a Join, but since the data I was using was minimal, it worked fine.

You could also try using the Criteria API or HQL.

Upvotes: 2

Related Questions