Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing of the Parent Entity Type #148

Open
jonathanevans82 opened this issue Apr 28, 2017 · 0 comments
Open

Storing of the Parent Entity Type #148

jonathanevans82 opened this issue Apr 28, 2017 · 0 comments

Comments

@jonathanevans82
Copy link

I am looking to store the Parent Entity Type Name and PK within the AuditLog table to allow me to flag a entity as 'changed' by traversing down the tree. The issue I have is that some objects are shared between parents and therefore I can't tie them together.

An Example.

Application1.Person
-> Application1.ContactDetails
-> Application1.AddressDetails

Application1.ShippingDetails
-> Application1.ContactDetails
-> Application1.AddressDetails

In this example, when I look at the Address details for a given user, there is no way to link them back up the object graph to flag the parent as 'changed'.

Looking through the source code here it doesn't appear that this is possible straight out of the box without changing it.

Besides the fact that I could do some joining of my own between the AuditLog and my own entities it seems like having the above option available would be beneficial in some situations.

Thanks for reading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant