Hello there
Wondering if you can help me with something. We have 2 related entities. A Person and a Contact where the Contact contains (amongst other things) a phone number for the Person
By storing the PersonID against the contact AND the ContactID against a Person in the database the LLBL very nicely allows me to either return a collection of Contacts (phone numbers) for the Person or the one "Preferred" phone number for that Person
We have a number of scenarios throughout our system like this one.
What we have also done is to set up an Audit Entity that will log all changes to our Entities as users make changes within the system. When the user makes changes I interrogate the DBValue of the changed field in the Fields collection for the Entity so that I can write a meaningful English statement in the Audit Log (e.g. "Changed Phone Number from (DBValue) to (CurrentValue)")
What I would like to know is: Does the "Preferred" Contact Entity itself linger in memory in a similar manner to the DBValue field in the Fields collection because I don't want to have to retrieve the old preferred Contact from the database, everytime the user clicks save, to record a meaningful description in the Audit trail...
If so how can I reference it?
Any ideas?
regards
Randall