【发布时间】:2013-12-07 00:04:50
【问题描述】:
我在 Oracle 中有一个 TIMESTAMP(6) WITH TIME ZONE 列。尝试从表中加载记录时出现异常:System.ArgumentOutOfRangeException : Year、Month 和 Day 参数描述了无法表示的 DateTime。
这是我尝试过的映射:
Map(x => x.ExpirationDate, "EXPIRE_DATE").CustomType("timestamp").CustomSqlType("TIMESTAMP(6) WITH TIME ZONE").Nullable();
Map(x => x.ExpirationDate, "EXPIRE_DATE").CustomSqlType("TIMESTAMP(6) WITH TIME ZONE").Nullable();
Map(x => x.ExpirationDate, "EXPIRE_DATE").CustomSqlType("timestamp").Nullable();
Map(x => x.ExpirationDate, "EXPIRE_DATE").CustomType("timestamp").CustomSqlType("timestamp").Nullable();
【问题讨论】:
标签: c# oracle fluent-nhibernate fluent-nhibernate-mapping