Updating Blof Field

Hi,

I have the following column in an entity:

[Column('WCBullets', [TColumnProp.Lazy])]
FWCBullets: TBlob;

I need to update it based on other columns. It contains RTF which I generate.

How can I do this in theTAureliusModelEvents.OnUpdating event?

I cannot change the structure of the underlying database because it is shared with a VCL app.

Thanks,

Ken

You can simply change its content and then set the RecalculateState event parameter to true so that it's taken into account when saving to the database.

Thanks but I was rather hoping for an example of how to change the content of the blob :grinning:

There are severa examples in documentation:

https://doc.tmssoftware.com/biz/aurelius/guide/mapping.html#tblob-type

Thanks. Wagner.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.