This project is read-only.

Why use nHibernate.Linq.dll

Topics: Building
Dec 8, 2011 at 9:28 AM

I get the same error as described here:

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 
				var queryable = _session.Linq<T>();
				return queryable;



Does Bifrost actually need the nHibernate.Linq.dll?

Dec 8, 2011 at 10:43 AM

Very good point.  

Its just laziness, to be honest. During the conversion to Nuget, all the old references kept intact and no code has been changed. 

I'll convert this to be an issue so we can fix this, no need for this reference!


Thanks for the heads up!

Dec 8, 2011 at 10:44 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.