Suppose I'm going to do something that needs access to NHibernate's ISession. For example running a Sql query via ISQLQuery or running a LINQ-to-NHibernate via session.Linq<MyType>(). I know there is 2 way to access ISession:
ActiveRecordMediator.GetSessionFactoryHolder().CreateSession()ActiveRecordMediator.Execute()
What is the pros and cons of each one? additionally is there another alternative ways?