I've created table with timestamp field. Allow Nulls property is set to false.
When I want to update entity from repository, I get null value for that field, but in databse this field is set to some value.
Does anyone knows what may be the problem?
I get the correct values for other fields.
Thank you.
edit:
When I get entity from the repository, timestamp field is set appropriately.
Problem is somewhere in http post
:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Edit(Product product)
The value of timestamp field is lost here :(