Using Dapper.NET in Orchard Module development

Topics: Core, Customizing Orchard, Installing Orchard
Feb 15, 2014 at 10: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 17, 2014 at 12:17 AM
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.