You got me, I know I'm using it for functionality other than it was intended for. I was hoping to use it because it allowed me to get it up and running much quicker than if I were to track down an AOP framework and learn it which is what I really need to do.
If you can recommend something I would appreciate it. It appears that StructureMap won't see this functionality till v2.5:
http://codebetter.com/blogs/jeremy.miller/archive/2008/01/27/interception-techniques-in-structuremap-2-5.aspx
This is the scenario I'm currently playing with: based on the context of the application the data a user is currently working would either come from a "live" table or a "draft" table. In order to keep the LLBLGen code simple it is written against the live table and has no knowledge of the draft table. If in the right context the draft data is overlaid on top of the live data meaning entity fields are changed to the latest draft or additional rows are added/removed to child collections if necessary.
I'm looking to intercept LLBLGen at certain points in order for this to happen. An example scenario might be if a user attempts to delete a row, if this happens within the draft context I would like that action "drafted" and applied at a later time if the user approves it, essentially making all the changes that would be performed within that session to the live table.
The draft table is essentially two columns: PropertyName, PropertyValue. A row is present for each property change on an entity. I've used this system in the past to draft changes but it required quite a bit of code intermixed with the standard LLBLGen code used to pull from the live table. I'm trying to eliminate a lot of repeated code by having this run in the background.