Using Dapper.NET in Orchard Module development

Topics: Core, Customizing Orchard, Installing Orchard
Feb 15, 2014 at 9:38 AM
This is a shot in dark. Can i use dapper.NET for Module development in Orchard? If i can then what should i do.?

Feb 16, 2014 at 11:17 PM
I just read what it does and yes, you can, however I don't see why you would. NHibernate is the ORM under Orchard (although you don't see it if you don't specifically want to see it most of the time) and in the end every service uses it. But again, it's abstracted away (but perhaps not for long) pretty deep.

But you can access the IDbConnection Object through ISessionLocator where you can get an NHibernate session from and in there somewhere is the connection too.