您的位置:首页 > 移动开发

Mapping an NCLOB to a String property in NHibernate

2014-06-11 15:51 369 查看
So I ran into an issue this evening where I needed to map a string property to a NCLOB column but I kept getting:

"ORA-01461: can bind a LONG value only for insert into a LONG column"

Turns out that you should set the column type to "AnsiString" as in:

<property name="Contents" column="CONTENTS" type="AnsiString"/>

- Hope this helps someone else out.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐