BlackBerry Dynamics for .NET Maui
12.1.1.5
Runtime library for .NET Maui applications
|
The secure SQL database is part of the BlackBerry Dynamics secure storage feature.
Data stored in the secure SQL database is encrypted on the device by the BlackBerry Dynamics Runtime.
The BlackBerry Dynamics secure SQL database is based on the SQLite library. Encryption is added transparently to the application by BlackBerry Dynamics.
The secure SQL database cannot be accessed until BlackBerry Dynamics authorization processing is complete. The BlackBerry Dynamics secure store also includes a secure file system
BlackBerry Dynamics .NET Maui applications can access the secure database using the replacements for the SQLite-net (SQLite
namespace) programming interface with a number of additional functions (see below).
To access the replacement classes instead of the original classes, change SQLite
to BBDXamarinForms.Common.Library.SecureDatabase
wherever it occurs in the application code. For example, utilize the following using statement:
The replacement packages support the same programming interface as the original SQLite-net, with the following exceptions:
ImportDatabase
and RawQuery
(see below for more details).ImportDatabase
- BBDXamarinForms.Common.Library.SecureDatabase.SQLiteConnection.ImportDatabase
RawQuery
- BBDXamarinForms.Common.Library.SecureDatabase.SQLiteConnection.RawQuery
The following code snippets illustrate some common tasks.
This snippet shows how to open the database in the contacts.db
file in the secure file system. The database is created if it does not already exist.