This project is read-only.

Question documentation Creating Module Dynamic Proxy

Topics: General
Apr 29, 2013 at 11:23 PM

I notice in the documentation below, you talk about "This code has two properties, Sku and Price, that are virtual in order to enable the creation of a dynamic proxy that will handle persistence transparently."

Where can i see this dynamic proxy in the code?
And I don't really understand why we need a proxy for persistence, what mean persistence in this case, because the model is used in an http application, so the http isn't statefull.
Apr 30, 2013 at 1:00 AM
You cannot see it: it's dynamically generated by Castle. You need a proxy so changes can be tracked, among other things. This has absolutely nothing at all to do with HTTP. We are talking about persistence of the product data into the database.
Apr 30, 2013 at 8:46 PM
Edited Apr 30, 2013 at 8:49 PM

I think i miss something about the persistence.
The persistence means "report the modifications" in a physical support as database.
But in this case, that means, you don't have to manage the call to saveChangesAndCommitInDatabase(), the system is enough smart to do it himself.
It's not clear.
I think I need to take a look of Castle.

I think you would like to talk about the pattern Active_Record used in Orchard.
And that's why you use nhybernate and not entity framework.

am I right?
Apr 30, 2013 at 10:08 PM
What exactly are you trying to do?
May 1, 2013 at 11:20 AM
Edited May 1, 2013 at 11:21 AM
Hi Bertrand,

So I try to understand Orchard Architecture to extend it. (I follow the provided documentation and it's really a good starter).
I am developper and trainer, I would like to use Orchard in professional project and in same time,
organize my lessons roadmap (for students) for the next year by integrated Orchard.
May 4, 2013 at 3:58 AM
I see. Makes sense.