locked
Adapter Code Generation API RRS feed

  • Question

  • The designer tool to create sync adapters obivously uses a code generation API to generate its code. Can we use that API? What dll and namespace are we talking about?

     

    Christian

    • Moved by Max Wang_1983 Friday, April 22, 2011 6:47 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Tuesday, July 29, 2008 4:56 AM

Answers

  • the API is the SqlSyncAdapterBuilder. BOL ms-help://MS.SynchronizationServices.v1.EN/syncdata1/html/89959665-0679-4c3e-acc0-467b84138c84.htm has this API documented.

     

    thanks

    Yunwen

    Tuesday, July 29, 2008 5:11 AM
    Moderator

All replies

  • the API is the SqlSyncAdapterBuilder. BOL ms-help://MS.SynchronizationServices.v1.EN/syncdata1/html/89959665-0679-4c3e-acc0-467b84138c84.htm has this API documented.

     

    thanks

    Yunwen

    Tuesday, July 29, 2008 5:11 AM
    Moderator
  • Thanks. Can this class create sql statements as well? Is there another library for that? I ask because the designer inside VS generates all the sql for you.

     

    Tuesday, July 29, 2008 5:38 AM
  • yes, the adapter has all the queries needed at the server side to get changes and apply changes and deal with conflicts.

     

    notice that the SelectNewAnchorCommand is on the DbServerSyncProvider class so you need to set this one yourself. i.e. the sqlsyncAdapterBuilder won't build that one.

     

    thanks

    Yunwen

     

    Tuesday, July 29, 2008 5:54 AM
    Moderator
  • Great. Thanks for your help.

     

    Tuesday, July 29, 2008 10:54 PM