Nhibernate映射oracle数据库时间戳
2020-07-03 本文已影响0人
王小强_ab80
xml文件中type改为Timestamp,net的类对应的字段类型为DateTime,如图1
图1
当成查询条件使用时,和用DateTime一样,只是精度不一样,例如Convert.ToDateTime("2020-07-02 21:34:41.013573")
xml文件中type改为Timestamp,net的类对应的字段类型为DateTime,如图1
图1
当成查询条件使用时,和用DateTime一样,只是精度不一样,例如Convert.ToDateTime("2020-07-02 21:34:41.013573")