Orchard with two datasources

Topics: Customizing Orchard
Sep 24, 2014 at 12:35 PM
Hello,

I'd like to use two datasources (two different database) with Orchard.
What should be done to achieve this?
Developer
Sep 25, 2014 at 6:15 AM
Edited Sep 25, 2014 at 6:15 AM
Create a SqlDbConnection for each of your database and then connect is one way to go.
Sep 25, 2014 at 2: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.