Working with MicroORM instead of NHibernate

Topics: Core, Customizing Orchard
Aug 29, 2013 at 11:39 AM
I'm thinking about rewriting the Data code of Orchard, so it can access the DB with a MicroORM (such as Dapper or Massive). I want to do this to boost the performance on a blog site I'm writing.

I like Orchard a lot and since it's a decent MVC CMS would like to use it.

What do you think about rewriting the DB access code ?
Aug 29, 2013 at 5:42 PM
I don't think you will be able to do it as most of the service layers are using LINQ queries. Unless you also implement it but it would be opposed to your goal.

One solution would be to actually provide a custom Content Provider with helpers in regard to Orchard, like ForType, ForPart, ... which would ease its usage, and people could use it to query the data instead of the current Content Manager or the HQL queries. Though it wouldn't integrate with 2nd level caching, or first level cache of NHibernate.

This is more something which could be part of a 2.0 plan where we already want to use a different DAL.