none
RowGuidColumn in N-Tier architecture RRS feed

  • Question

  • Is it possible to specify the RowGuidColumn on a SyncAdapter in an N-Tier architecture?
    Wednesday, August 11, 2010 5:08 PM

Answers

  • Found out that I have to set the RowGuid on the client side provider during the creation of the schema on the client side. I didn't want to bring the integer PK over to the client side. So I created a guid column to identify the row on the client side.

     

     

    void LocalDataCache1ClientSyncProvider_CreatingSchema(object sender, Microsoft.Synchronization.Data.CreatingSchemaEventArgs e)
    
            {
    
                e.Schema.Tables["Orders"].Columns["guid"].RowGuid = true;
    
            }

     

    • Marked as answer by GoDaddy Thursday, August 12, 2010 1:00 PM
    Wednesday, August 11, 2010 8:53 PM