Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » MobiLink - Server Administration » MobiLink server APIs » Synchronization scripts in .NET » .NET synchronization logic

 

Constructors

The constructor of your class takes no parameters or takes one iAnywhere.MobiLink.Script.DBConnectionContext parameter. For example:

public ExampleClass(iAnywhere.MobiLink.Script.DBConnectionContext cc)

or

public ExampleClass()

The synchronization context passed to you is for the connection through which the MobiLink server is synchronizing the current user.

The DBConnectionContext.GetConnection method returns the same database connection that MobiLink is using to synchronize the present user. You can execute statements on this connection, but you must not commit or roll back the transaction. The MobiLink server manages the transactions.

The MobiLink server uses the constructor that takes an iAnywhere.MobiLink.Script.DBConnectionContext parameter if it exists. If it does not, it uses the void constructor.

See DBConnectionContext interface [MobiLink server .NET].