I have an entity with datetime property ImageModifiedDate which stores image last modification date. If I change the image can this property be updated automatically somehow? I mean can this property be bound to the file (the image) and can it be changed (automatically) when the actual file changes?
I need this in asp.net mvc 3 app, but I think it can also be marked as c# question.
Edited: I store images on the filestream, not in the database
It would seem that you have a problem in two pieces: updating the last modification date in the database, and knowing that the database has changed, then displaying the changes.
For the first, create a Windows Service or such program and have it use a FileSystemWatcher to watch for file changes. It can then update the database with the new information.
As to displaying the changes in the web application, you can have the application poll via AJAX and just update the HTML that displays the date. This way, you won’t have to update the whole page just when a date changes.