how to access the database in an extension

  
I have an extension and I need to access some tables from the database. The database is used in the same application.
 
I've done the import of entities in integration studio.
 
How do I use the CRUD methods with these entities?

Thanks!

André Pereira
Hi André

I believe the below videos explain this topic nicely. They were built for an older version of the OutSystems Platform, but you can base on it:
http://www.outsystems.com/videos/integration/legacy-database-integration/
http://www.youtube.com/watch?v=jodWFszfTNQ

Tip: After you publish the Extension, just open Service Studio and use Add/Remove References to include the references to the entities in your Extension. After that, the entities work as if they were created in Service Studio.

Cheers,
Acácio