Skip to content

Database Service

Alex van den Berg edited this page Feb 25, 2022 · 1 revision

Mysql Database Connection Service

The framework has a build-in database service, for connecting to databases. Currently we only support Mysql database connection but in the future we will also add Microsoft SQL support.

Using the database connection service

To be able to use the database connection service you must first specify a connectionstring in the application configuration file, and you must bind the configuration file to the framework bootloader. After to above steps have been taken you can create a new instance of the database connection service.

Functions

Bellow you find a overview of the functions available in the database connection service

Name Description
ClearParameters Clears all added parameters
AddParameter Adds a new parameter that can be used in queries
GetDataset Executes a specified query and returns the result as a dataset
Execute Executes a specified query
Clone this wiki locally