Changing the .Linq<> to .Query<> of the nhibernate, because on the current version of the nhibernate looks cause a error when use the .Linq.