Let's say I have a table in my database called Orders that has the following columns:
OrderId OrderDate CancelDate ShipDate LastActionDate
I want LastActionDate to always be the latest date of OrderDate, CancelDate, and ShipDate. What's the best way to accomplish this? Is there a way to handle the OnChanged event of those three dates so that the LastActionDate can be recalculated whenever those properties change? Or is there some built-in Linq 2 Sql magic that handles this scenario? Or do I just have to make sure to set the LastActionDate whenever I change any of the three dates?