I need to synchronize a database with a webservice. Items are identified by integer values in the database and by GUIDs in the webservice. How should I define metadata schema in this case? As I understand, it should be the same for both providers.
CustomFieldDefinition[] customFields
= new
CustomFieldDefinition[2];
customFields[0] =
new
CustomFieldDefinition(CUSTOM_FIELD_ID,
typeof(ulong));
customFields[1] =
new
CustomFieldDefinition(CUSTOM_FIELD_TIMESTAMP,
typeof(ulong));
IdentityRule[] identityRule =
new
IdentityRule[1];
identityRule[0] =
new
IdentityRule(new
uint[] { CUSTOM_FIELD_ID });