Re: NHibernate и type="Timestamp"
От: server_mouse Беларусь about:blank
Дата: 29.06.09 19:02
Оценка:
Здравствуйте, Keith, Вы писали:

K> Маппинг:

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.

Повреждение мозга после ректальной биопсии — редкая штука (с) Хаус
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.