MobiLink Synchronization User's Guide
Writing Synchronization Scripts in .NET
Writing .NET synchronization logic
The constructor of your class may have one of two possible signatures.
public ExampleClass( iAnywhere.MobiLink.Script.DBConnectionContext cc )
or
public ExampleClass()
The synchronization context passed to you is for the connection through which the MobiLink synchronization server is synchronizing the current user.
The getConnection
method of the DBConnectionContext
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 synchronization server manages the transactions.
The MobiLink synchronization server prefers to use constructors with the first signature. It only uses the void constructor if a constructor with the first signature is not present.