Feb 1, 2011 at 4:35 PM
Edited Feb 1, 2011 at 4:49 PM
I am considering which CMS to use for my eCommerce platform, to do this I am playing with orchard to see if I could make it fit....
I am following the tutorials to create a ContentPartRecord called Product which has SKU, Price etc. However I also want it to have a reference to a 'unit of measure' which is in a seperate accounting system.
Am I able to write my own implementation of the IRepository to allow me to load this via EntityFramework? How would this work during editing?
Would I be able to do something like:
But where would I put this in my Module? Could I share this between multiple modules that share this dependancy?
Orchard looks great, but a bit of help would be nice to get me up and running quickly.
Edit: I copied DataModule from Orchard.Framework.Data and did this:
This seems to send an ExternalRepository<Foo> into my FooHandler when I request an IRepository<Foo>.
I am going to see if I can get Orchard to read/write content parts through this interface.