This project is read-only.

Complex module using own NH

Topics: Troubleshooting, Writing modules
Mar 16, 2012 at 5:19 AM

Hi All

I'm running in to some issues integrating an existing MVC app in to Orchard.

My app has its own Core and Data lib based on NHibernate 3.2 and have merged the separate controller library in to my Module.

Now the module installs and after some issues with getting DI working it's now giving me some issues with NHibernate versions as Orchard 1.5 uses 

Can anyone point me in the right direction to get this running? Re-writing is not even a remote option.

Also, if it is possible, how would I migrate the session initialization code which lived in my Global.asax.

Thanks in advance


Mar 17, 2012 at 9:41 PM

There is no such thing as Orchard 1.5.

nHibernate 3 won't work with Orchard, sorry, you'll have to find another way.

Mar 18, 2012 at 3:30 AM

Damn, I was hoping there was a way around that. I was really keen to use Orchard for this project but the only way I see this happening now is if I either:

  1. Spend a whole lot of time refactoring my project, which is not feasible
  2. Create a branch of Orchard and upgrade it - not really feasible either
  3. Put my apps in a sub-domain and pull data via a service - not ideal
  4. Try another CMS - not the desired outcome but looks like the most logical step 

Back to the drawing board.