How to connect to another DB

Topics: Customizing Orchard
Jun 11, 2013 at 11:01 AM

I have another database that I want to use besides the main dB used by Orchard framework.
I know it's possible to use EF or NHibernate to connect and retrieve data from this other dB.
But I just want to make sure if there's another built-in way to do this in Orchard so that I don't have to re-invent the wheel. What I'm hoping is that I would need only to create the Record object, then use the injected IRepository object capable of retrieving data from the other dB.

Jun 26, 2013 at 8:08 AM
No, there is nothing in Orchard that will help in querying other databases than its own. Don't use IRepository, that's not what it's for.