Database Initialization

<< Click to Display Table of Contents >>

Navigation:  Databases >

Database Initialization

Before accessing a database from a driver, it is necessary to initialize it. The initialization process loads the current state of the database into memory and begins tracking it for changes.

 

To add a database, call the AddDatabase function of the BncsFramework static.  Note that this call will fail if the BncsFramework has not been initialized and enabled for BNCS connectivity.  The AddDatabase call takes the DeviceId and DatabaseNumber as parameters and returns a BncsDatabase object.  AddDatabase will throw an exception if the database has already been added - to retrieve a previously added BncsDatabase object, use BncsFramework.GetDatabase.