DbSyncCreationOption.Skip with SqlCeSyncScopeProvisioning
-
Wednesday, 23 December, 2009 10:22 AMHi,
I would like to know if is it possible de create a scope on a local CE database with the option DbSyncCreationOption.Skip (Because I don't want to delete and re-create my tables):
SqlCeSyncScopeProvisioning
ceConfig = new SqlCeSyncScopeProvisioning();
ceConfig.SetCreateTableDefault(DbSyncCreationOption.Skip);
When I do that I 've got an exeption.
Thanks- Moved by Max Wang_Chinasoft Tuesday, 19 April, 2011 11:04 PM Forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
All Replies
-
Thursday, 24 December, 2009 1:43 AM
Hello,
Please try initializing the SqlCeSyncScopeProvisioning class with tables before setting the create option. You can initialize the scope provisioning using:
public void PopulateFromScopeDescription(DbSyncScopeDescription scopeDescription)
You can see an example of the provisioning usage here:
http://msdn.microsoft.com/en-us/library/microsoft.synchronization.data.sqlserverce.sqlcesyncscopeprovisioning(SQL.105).aspx
Cheers
Kyle- Marked As Answer by Deepa ChoundappanEditor Monday, 28 December, 2009 11:34 PM