Contents Index DBConnection interface DBParameter class

MobiLink Synchronization User's Guide
  Writing Synchronization Scripts in .NET
    MobiLink .NET API Reference

DBConnectionContext interface


public interface DBConnectionContext
Member of iAnywhere.MobiLink.Script

Interface for obtaining information about the current database connection. This is passed to the constructor of classes containing scripts.

GetConnection method 

public iAnywhere.MobiLink.Script.DBConnection GetConnection( )
Member of iAnywhere.MobiLink.Script.DBConnectionContext

Returns the existing connection. The connection is the same connection that MobiLink uses to execute SQL scripts.

This connection must not be committed, closed or altered in any way that would affect the MobiLink server use of the connection. The connection returned is only valid for the lifetime of the underlying MobiLink connection. Do not use the connection after the end_connection event has been called for the connection.

If a server connection with full access is required, use ServerContext.makeConnection().

GetServerContext method 

public iAnywhere.MobiLink.Script.ServerContext.GetServerContext( )
Member of iAnywhere.MobiLink.Script.DBConnectionContext

Returns the ServerContext for this MobiLink server.


Contents Index DBConnection interface DBParameter class