Fix TimeStamp fields handling with EntityFramework

Hello!
A few months ago I submited this patch, but I don't find it lates beta version.
So I improove it, add test and send new request.