Writing Synchronization Scripts in .NET
Writing .NET synchronization logic
The MobiLink synchronization server instantiates your classes at the connection level. When an event is reached for which you have written a non-static .NET method, the MobiLink synchronization server automatically constructs the class, if it has not already done so on the present database connection.
For more information, see Constructors.
All methods directly associated with a connection-level or table-level event for one script version must belong to the same class.
For each database connection, once a class has been instantiated, the class persists until that connection is closed. Thus, the same instance may well be used for multiple consecutive synchronization sessions. Information present in public or private variables will thus persist across synchronizations that occur on the same connection unless explicitly cleared.
You can also use static classes or variables. In this case, the values are available across all connections in the same domain.
The MobiLink synchronization server automatically deletes your class instances only when the connection to the consolidated database is closed.
SQL Anywhere Studio 9.0.2
Copyright © 1989–2004 Sybase, Inc. Portions copyright © 2001–2004 iAnywhere Solutions, Inc. All rights reserved.