Answered by:
custom MetaDataStore & ReplicaMetadata imlementation

Question
-
I am working on a simpleprovider, the synchrnoization is now working, but uses the built in sqlce metadata store. Unfortunaly I cant use that for storage , and cant find any reasonable examples for how to implement the MetaDataStore. Actually the MetaData store is pretty easy, its the underlying ReplicaMetadata implementation that is quite daunting. Is there a reference as to what members need to be implemented to work with a simple full enumeration provider ? And perhaps any examples ? The exammple titled custom meta data is not as appropriate as the tiltle would imply because it does not actually implement any of the base meta data classes and instead builds a simplistic meta data store of its own.
-Robert
Robert GWednesday, February 10, 2010 1:46 PM
Answers
-
So you would like to ues simple sync provider with a customized "metadata store" implemented yourself.
If this is true, here are few points for your reference.
1. Implementing metadata store needs quite some amount of effort and time, not a relatively easy job.
2. It is also not encouraged (frankly speaking) because this combination is not a supported scenario.
3. If you really want to implement a "metadata store" yourself, you can try
a. download Sync Framework V2 SDK, from http://www.microsoft.com/downloads/details.aspx?FamilyID=89adbb1e-53ff-41b5-ba17-8e43a2e66254&displaylang=en.
b. Install the SDK and try to look for the header files Metastore.h and MetastoreErrors.h, from %programfiles%\Microsoft SDKs\Microsoft Sync Framework\2.0\include.
Thanks.
Leo Zhou ------ This posting is provided "AS IS" with no warranties, and confers no rights.- Proposed as answer by Mahesh DudgikarMicrosoft employee Friday, February 12, 2010 6:42 AM
- Marked as answer by Mahesh DudgikarMicrosoft employee Friday, February 19, 2010 5:42 AM
Thursday, February 11, 2010 6:30 AMAnswerer
All replies
-
So you would like to ues simple sync provider with a customized "metadata store" implemented yourself.
If this is true, here are few points for your reference.
1. Implementing metadata store needs quite some amount of effort and time, not a relatively easy job.
2. It is also not encouraged (frankly speaking) because this combination is not a supported scenario.
3. If you really want to implement a "metadata store" yourself, you can try
a. download Sync Framework V2 SDK, from http://www.microsoft.com/downloads/details.aspx?FamilyID=89adbb1e-53ff-41b5-ba17-8e43a2e66254&displaylang=en.
b. Install the SDK and try to look for the header files Metastore.h and MetastoreErrors.h, from %programfiles%\Microsoft SDKs\Microsoft Sync Framework\2.0\include.
Thanks.
Leo Zhou ------ This posting is provided "AS IS" with no warranties, and confers no rights.- Proposed as answer by Mahesh DudgikarMicrosoft employee Friday, February 12, 2010 6:42 AM
- Marked as answer by Mahesh DudgikarMicrosoft employee Friday, February 19, 2010 5:42 AM
Thursday, February 11, 2010 6:30 AMAnswerer -
Thanks for the overview, your response implies that a metadata store cannot be implemented in managed code but (based on a quick look at the headers) must be a COM object?
My only actual problem with the SQLMetadatastore is that I dont have a local file system that I can use for persistant storage, is there an actual SQL implementation ? Or one that I can provide a storage stream for ?
That aside, the sample I was looking at (sync101nomds) has a knolwedgesyncprovider with a simplistic internal metadata store. Would this be the model you suggest if I cant use the SQLMetadatastore? I have three sync providers, two full enumeration providers and one anchor provider.
Robert GThursday, February 11, 2010 11:28 AM -
Robert,
yes, you can plug your custom metadata store for the sync providers. The sample you're pointing at may be a good place to start.
Unfortunately this applies to the normal sync providers. If you are building SimpleProviders, like full enumeration or anchor provider, the sqlce metastore is pretty much hardcoded.
Thanks,
LechThursday, February 11, 2010 11:46 PM -
Hi,
as Robert, I'm looking for an example/explanations how to implement custom metadata storage. ANY NEWS or NEW IDEAS FOR THIS 2,5 YEAR PERIOD???
The only place on the net I've found with relatevely "close" description is the chapter "6.3. Implementing the Custom Metadata Store" from a book "http://www.amazon.com/Pro-Sync-Framework-Rituraj-Singh/dp/1430210052". Have anybody read this book & chapter. Does it speak about in-memory storage or about custom implementation in SQL Server?
Thanks.
Wednesday, October 17, 2012 11:22 AM