Use the RuntimePublic API to insert data in the application database following this pattern:

  1. Retrieve a DatabaseProvider from the DatabaseAccess instance;
  2. Use the provider to create a transaction;
  3. Use the transaction to create a Command;
  4. Use the Command to create command parameters;
  5. Execute the Command;
  6. Retrieve the Command results.

Example

In this example, we add a record to the USEDITEM table that is in the application database.

C#

Java

See Also

Overview of RuntimePublic.Db API | About APIs