none
Different ID types for two providers

    Question

  • 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 });

    Thursday, April 10, 2014 12:25 PM

All replies

  • if the id on the other side is an int and the other one is a guid, how do you find the corresponding row to update on the destination if you have no common identifier for both?

    say you update row id 1 on source, how do you know which row to update on the destination if they dont use the same int identifier?

    Thursday, April 10, 2014 12:54 PM