Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 bltoolkit 作为 orm,但我遇到了 clob 类型的问题。
我的字符串值很长,更新操作时出错。
错误:ORA01704 - 字符串文字太长。
检查表,我的列类型是 clob。bltoolkit 表类设计中没有 clob 选项。我这样设置此列:
[MapField("MSG_BODY")] public string MsgBody { get; set; }
怎么了 ?
我找到了一个解决方案,只发布 clob 列并且它有效!
//update only body value = db.Schedule .Where(x => x.Rowversion == _zaman && x.ScheduleId == this.ScheduleId) .Set(x => x.Rowversion, x => _zaman) .Set(x => x.MsgBody, x => this.MsgBody) .Update();