I have a web service that use nhibernate. I have a singleton pattern on the repositorry library but on each call the service, it creates a new instance of the session factory which is very expensive.
Good afternoon, I have been stuck on this issue for a number of days now and I don\'t feel my understanding of Nhibernate / SQL Server is of enough so that I might figure it out.
NHibernate is throwning an exception when particpating in a distirbuted transaction and you\'ve opened a session by specifying your own connection object.
Having the code below in my Global.asax.cs and two controller (one based on a the other: MasterController) I don\'t seem to find how can I resolve the repository register in my WindsorContainer from t
I am using hibernate annotations, spring, a sessionFactory and defining everything in a context.xml (like so..)
We have a situation where we have multiple databases with identical schema, but different data in each.We\'re creating a single session factory to handle this.
I currently have a NHibernateHelper class which creates a session factory. I keep recieving errors saying \'Session Closed!\'. Am I going about this in the wrong way? The error occurs when I call the
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>
I am using hibernate-2.1 and \"net.sf.hibernate.SessionFactory\" class in my spring project. Now I am switched to Spring 2.5.6.A, where they are using hibernate3 and I am not able to find out the \"n
that\'s how the session factory should be gotten: protected SessionFactory getSessionFactory() { try { return (SessionFactory) new InitialContext()