c# - Having Timestamp in Entity Framework actually tell the code the date of change -


I need my entities in the first environment of the EF 4.3 code when they were last updated. Is this possible? If so, how to get the last shuffle in the unit category of the following property: [timestamp] Public byte [] roversan; Set; }

I have to take the time to update the method in this very unit category.

A datetime property was updated to in your model < / Code> or (whatever).

  updated the public date time {received; Set; }   

Then in your code, I think you can set it to a update () (or something similar)

  updated = date time.Now,   

In this way, the update method is called on a line every time, to execute the updated property method Will be set at the right time.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -