* Upgraded NHibernate to version 5.3.10. Solution builds with no warnings.
* fixed most issues
* Added source code for NHibernate.Linq library from
http://sourceforge.net/projects/nhcontrib/files/NHibernate.Linq/1.0/NHibernate.Linq-1.0.0.GA-src.zip
With the modified DetachedCriteriaAdapter.cs for Orchard.
Started upgrading that library to NHibernate 5.3.10.
* Finished updating NHibernate.Linq to work with NHibernate 5.3.10.
* Removed NHibernate.Linq from lib folder
* Updated code generation templates to use the correct version of nhibernate