Why use nHibernate.Linq.dll

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

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?

Coordinator
Dec 8, 2011 at 9: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!

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