G
Guest
I've started looking at Aspect Oriented Programming but I've stumbled at a
problem I can't solve.
I want to add an Aspect that would notify a UnitOfWork that the current
DomainObject has changed so that it can be marked as Dirty.
I've created an Attribute, MessageSink and ContextProperty and everything is
working.
So when a property is accessed a function in the MessageSink class is
executed and the only thing the DomainObject has to do is add [SaveChanges]
to the class declaration.
But how can I pass the current DomainObject to my UnitOfWork? The funciton
in the MessageSink doesn't know about the DomainObject where the attributed
is used and I don't know how to find out on which DomainObject the property
is accessed.
Thnx for your help!
Wouter de Kort
problem I can't solve.
I want to add an Aspect that would notify a UnitOfWork that the current
DomainObject has changed so that it can be marked as Dirty.
I've created an Attribute, MessageSink and ContextProperty and everything is
working.
So when a property is accessed a function in the MessageSink class is
executed and the only thing the DomainObject has to do is add [SaveChanges]
to the class declaration.
But how can I pass the current DomainObject to my UnitOfWork? The funciton
in the MessageSink doesn't know about the DomainObject where the attributed
is used and I don't know how to find out on which DomainObject the property
is accessed.
Thnx for your help!
Wouter de Kort