Здравствуйте, Keith, Вы писали:
K> Маппинг:
K>
K> <property name="recordDate" column="recordDate" access="field" type="Timestamp" insert="false" update="false" />
K>
K> В таком виде значение сохраняется, в БД содержимое отображается как <Binnary data>,
K> но вот при получении объекта из БД происходит исключение:
K> "NHibernate.ADOException: Could not cast the value in field recordDate9_0_ of type Byte[] to the Type TimestampType. Please check to make sure that the mapping is correct and that your DataProvider supports this Data Type.".
K> Как это правильно сделать? В документации ни слова.
В MS SQL Timestamp!=Datetime
SQL Server Books
The Transact-SQL timestamp data type is different from the timestamp data type defined in the SQL-2003 standard. The SQL-2003 timestamp data type is equivalent to the Transact-SQL datetime data type.