ConnectionProfile

The ConnectionProfile class manages local database information. Set its properties, including the encryption key, during application initialization, and before creating or accessing the local client database.

By default, the database class name is generated as "packageName"+"DB".

ConnectionProfile cp = SUP101DB.GetConnectionProfile();
cp.EncryptionKey = "Your encryption key"; //Encryption key could be of arbitrary length. Generally the longer, the better.
cp.Save();

You can also generate an encryption key by calling the generated database's GenerateEncryptionKey method, and then store the key inside a DataVault object. The GenerateEncryptionKey method automatically sets the encryption key in the connection profile.

You can use the cacheSize connection property to control the size of the memory cache used by the database.

public int CacheSize {get; set; } 
Related tasks
Setting Up the Connection Profile