SuperOffice.ErpSync.Contract in your sync connector, you can take advantage of various helper classes and methods to make creating a connector a bit easier.
ConfigDataHelper
TheConfigDataHelper class contains a GetMetaData method which parses a given class to generate a set of FieldMetadataInfo objects (used when Erp Sync asks the connector which fields are needed to define a connection, or which fields are supported on a given actor type).
It also has methods to save and retrieve configuration data to and from persistent storage (using IsolatedStorage): SaveData() and GetData().
ResponseHelper
All return types from a sync connector arePluginResponseInfo objects (or objects from one of its derived classes), and the ResponseHelper class is designed to make it as easy as possible to generate these objects.
CultureDataFormatter
ConnectorWS also contains a copy of CultureDataFormatter (the original version is found in SoCore), which can help with parsing strings to typed objects and vice versa.
For more information on the usefulness of this class, see field-value formats and conventions.
SearchHelper
TheSearchHelper class contains various methods for checking if a given field value is a match to a given SearchRestrictionInfo object. There are various methods available:
There isn’t a separate method for list values, because each connector will handle lists in its own way. However, since the list item keys are communicated as simple strings from the ERP sync,
IsMatchString will probably be useful for checking searches containing list restrictions.Extension methods
There are also extension methods available for all classes that are duplicated between the web service layer and the host/connector communication layer (such asErpActor and ErpActorWS), useful for turning one into the other (and vice versa).