I use oracle as db and free Nhibernate for display.
Below is my feature class
public class UserFieldEvent { public virtual int Id { get; set; } public virtual UserFieldBase UserField { get; set; } public virtual EventType EventType { get; set; } public virtual string EventScript { get; set; } }
The length of the EventScript property can be from 0 to 4000. In the database, I made a column type for the EventScript CLOB.
Below is my mapping class:
public UserFieldEventMap() { Table("TBLDS_USERFIELDEVENT"); Id(x => x.Id).GeneratedBy.Sequence("SEQDS_USERFIELDEVENT"); Map(x => x.EventType).CustomType<EventType>(); Map(x => x.EventScript).CustomSqlType("CLOB"); References(x => x.UserField).Column("USERFIELDBASEID"); }
Now that the EventScript is longer than 2000, I get the error message "ORA-01461: may bind the LONG value only for insertion into the LONG column". storing the object in the database. Can anyone help with this.
source share