RE: insert data to data Entity
I'm still not sure if I understand. Like I wrote in my first reply, the CRUD operations work just like they do with tables.
Do you know how to read, insert, update and delete data from tables via x ?
In my first reply I shared an example on how to insert data via an entity. It should give you a pretty good idea how to do updates and deletes, too. Read operations are done with a select statement, just like with tables. So, there's your CRUD.
But, perhaps it's good to clarify it even more:
MyDataEntity myEntity;
myEntity.clear();
myEntity.MyField = 'foo';
myEntity.insert(); // "C"
select firstonly myEntity where myEntity.MyField == 'foo'; // "R"
myEntity.selectForUpdate(true);
myEntity.MyField = 'bar';
myEntity.update(); // "U"
myEntity.delete(); // "D"
// That's CRUD!
Is it clear now?