-
Hello everyone, two days ago I discovered the great potential of Dotmin.Sync and I have been researching the existing documentation, which would be a good practice to make new versions of Xamarin as an example and update new tables or new columns. Should it have a general Deprovision or Provision method to execute it every time a version has a new modification and it rebuilds the synchronization tables, SP, etc? Anyone with a comment ... thank you very much :-) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Good question @maxrodro. We are experimenting with migrating one of our apps from Realm Cloud to DMS. Realm handles migrations automagically. I think it would be great if DMS did the same. One major downside though is that Realm migrations are additive only. This means objects/properties cannot be renamed or deprecated. I think DMS has the potential to be smarter than that. |
Beta Was this translation helpful? Give feedback.
-
Hey @maxrodro Actually you have a If you look the documentation, you will see that it's not really complicated to use them : https://dotmimsync.readthedocs.io/Provision.html#provision-deprovision The only thing to remember when using these methods is to save the scope tables at the end, depending your needs. You have a sample here : https://github.com/Mimetis/Dotmim.Sync/tree/master/Samples/ProvisionDeprovision Do you need more ? |
Beta Was this translation helpful? Give feedback.
Hey @maxrodro
Actually you have a
DeprovisionAsync()
and aProvisionAsync()
methods.If you look the documentation, you will see that it's not really complicated to use them : https://dotmimsync.readthedocs.io/Provision.html#provision-deprovision
The only thing to remember when using these methods is to save the scope tables at the end, depending your needs.
(I'm thinking about simplifying this step and encapsulate the save scope in the methods, but for now, you have to do it manually)
You have a sample here : https://github.com/Mimetis/Dotmim.Sync/tree/master/Samples/ProvisionDeprovision
Do you need more ?