简体   繁体   中英

Mysql TimeStamp datatype

I am developing a asp.net web application with ado.net entity framework and MySQL as backend. I have taken some columns in DB as timestamp datatype when I get date from DB these fields of timestamp datatype returns null. In application these fields are mapped as datetimeoffset.

See the accepted answer to this post

How to convert a Unix timestamp to DateTime and vice versa?

You need to adapt the timestamps into datetimeoffset objects in .net.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM