An easy way to update an entity which is not related to the data model is to use the CEntityManager method called GetEntity. This comes in handy when the SOA layer is not accessible as this is the only way you can perform this operation.
var Entity = CEntityManager.GetEntity("EntityName").GetEntityList("","Filter","","");
for(var Counter=0; Counter<Entity.length; Counter++)
{
// Get the attribute value of the record
var Value= Entity[Counter].Attributes["age"].Value;
// Update the attribute age with the value of 36
Entity[Counter].Attributes["age"].Value = 36;
Entity[Counter].Update();
}
In terms of performance, this operation is the fastest way to update an entity not related to the data model. I recommend using it especially when you have a huge amount of records.