1

Closed

Switch to the built-in Linq support of NHibernate 3

description

I get the same error as described here:

http://stackoverflow.com/questions/5940631/problem-with-linq-query

One of the answers to this error is:

"You should not use NHibernate.Linq.dll with NHibernate 3.0! NHibernate 3.0 has Linq included (a by far better version than the old extension dll), you just need to add using NHibernate.Linq; and usesession.Query<T>() instead
of session.Linq<T>()"




namespace Bifrost.NHibernate
{
public class EntityContext<T> : IEntityContext<T>
{
...
    public IQueryable<T> Entities 
    {
        get 
        { 
            var queryable = _session.Linq<T>();
            return queryable;
        }
    }
...

}



Does Bifrost actually need the nHibernate.Linq.dll?
Closed Dec 12, 2011 at 9:50 AM by adept
Fixed in latest source

comments