Orchard with two datasources

Topics: Customizing Orchard
Sep 24, 2014 at 11:35 AM

I'd like to use two datasources (two different database) with Orchard.
What should be done to achieve this?
Sep 25, 2014 at 5:15 AM
Edited Sep 25, 2014 at 5:15 AM
Create a SqlDbConnection for each of your database and then connect is one way to go.
Sep 25, 2014 at 1:50 PM
I used the orchard framework to created a data access layer that creates an Nhibernate session for my external databases. I also created a repository wrapper that allows me to use IoC to create a repository that allows me crud operations.