Click or drag to resize

DbcManager Class

X#
This classes manages open database. Both databases that are opened explicitely and also databases that are opened for "free" tables that have a backlink to a database
Inheritance Hierarchy
Object
  DbcManager

Namespace:  XSharp.RDD
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 CLASS DbcManager
Request Example View Source

The DbcManager type exposes the following members.

Constructors
  NameDescription
Public methodDbcManager
Initializes a new instance of the DbcManager class
Top
Properties
  NameDescription
Public propertyStatic memberDatabases
Top
Methods
  NameDescription
Public methodStatic memberActivate
Public methodStatic memberClose
Close a Database
Public methodStatic memberCreateDatabase
Create a new DBC file
Public methodStatic memberExtendDbName
Enhance the DBC name. Adds the extension and path when needed.
Public methodStatic memberFindDatabase
Search a Database by file name
Public methodStatic memberFindDatabaseByName
Search a Database by name
Public methodStatic memberOpen
Open a DBC file. This does NOT make the database the active database
Public methodStatic memberValidateStructure
Validate the DBC structure
Top
Remarks
The Databases are opened like 'normal' tables but in a separate DataSession.
The DoForDataBase() method selects this special datasession, executes the action that is passed as parameter and restores the original datasession. This way you can seek, evaluate macros etc without disturbing the normal opened cursors.
See Also