Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Working with Sessions

The c-treeDB .NET interface requires a session object to perform any data structure initialization or manipulation. The following steps must be executed within a session before any database or table operations are attempted:

  • Construct a CTSession object
  • Logon to a c-tree session by calling the CTSession.Logon() method.

Then after this initialization, all database and table operations should be performed. After these, in order to finalize the database operations, the following steps should be performed:

  • Logout from a c-tree session by calling the CTSession.Logout() method.
  • Destroy the CTSession object

In This Section

Creating a Session Object

Creating a New Session Dictionary

Session Logon and Logout

Session Properties

Managing Databases

Working with Sessions without Dictionary Support

Session Dictionary

TOCIndex