2016-05-25 12 views
1

Ich benutze Bltoolkit als Orm und ich hatte ein Problem mit Clob-Typ.Bltoolkit Orakel Clob Typ

Ich habe einen langen String-Wert und ich habe Fehler beim Update-Vorgang.

Error: ORA01704 - String literal too long.

Überprüfte Tabelle und meine Spalte Typ ist Clob. Im Bltoolkit-Tabellenklassenentwurf gibt es keine clob-Option. Ich habe diese Spalte wie folgt aus:

[MapField("MSG_BODY")] 
public string MsgBody { get; set; } 

Was ist falsch?

Antwort

0

Ich finde eine Lösung, Post nur Clob Spalten und es funktioniert!

//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();