xml文件中type改为Timestamp,net的类对应的字段类型为DateTime,如图1

当成查询条件使用时,和用DateTime一样,只是精度不一样,例如Convert.ToDateTime("2020-07-02 21:34:41.013573")

xml文件中type改为Timestamp,net的类对应的字段类型为DateTime,如图1
当成查询条件使用时,和用DateTime一样,只是精度不一样,例如Convert.ToDateTime("2020-07-02 21:34:41.013573")
本文标题:Nhibernate映射oracle数据库时间戳
本文链接:https://www.haomeiwen.com/subject/ewvkoftx.html
网友评论