This question is locked. New answers and comments are not allowed.
I have just started using the new ORM Visual Designer. It is pretty awesome. I have a number of questions, but one that is eating at me at the moment.
How would one go about adding their own logic (and extending what happens) when say a .SaveChanges occurs (or .Delete, or .Add) to the context?? Just for example... What if I wanted to update a table of my own in the database when any UPDATE (.SaveChanges) happens... What would I change...where?
Is this possible?
I understand at the field/property level you can do things to overide/extend what happens in the actual persisted generated business object classes, but the methods I am referring to (.SaveChanges, .Delete, .Add) are at the OpenAccessContextBase class which I don't have easy access to.
Any advice?
How would one go about adding their own logic (and extending what happens) when say a .SaveChanges occurs (or .Delete, or .Add) to the context?? Just for example... What if I wanted to update a table of my own in the database when any UPDATE (.SaveChanges) happens... What would I change...where?
Is this possible?
I understand at the field/property level you can do things to overide/extend what happens in the actual persisted generated business object classes, but the methods I am referring to (.SaveChanges, .Delete, .Add) are at the OpenAccessContextBase class which I don't have easy access to.
Any advice?