Correct way to Trigger Parent Entity UpdatedAt Refresh when Child Entity is Updated

In this scenario using EF I have an Author who has a 1 to N relationship with Articles. The requirement is that when an Article is updated the Author's UpdatedAt timestamp should reflect the change. Now the brute force way would be to load the Author and do a dummy Save when I'm updating an Article. That seems very inefficient. Is there a best practice approach?



Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept