Replies: 1 comment 9 replies
-
As with all EF related changes, you will need to do migrations on both the client and the server. In general, when in production, you have to be very careful about adding properties to ensure clients that have not yet upgraded don’t get broken. I generally add an API with a “dbVersionDate” and populate that from the date my schema changed. Then, in my client startup, I call the server API to get the dbVersionDate and if it is different to what I have, I tell the user to update before continuing. This way the client is in sync with the server. The problem occurs when the client is long-lived (e.g. iOS) and users don’t generally quit. you still have to trap errors. |
Beta Was this translation helpful? Give feedback.
-
I have added a couple fields to a data class in the Maui.App and then the same in the App Service code.
To affect these changes in the deployed Azure App Service, underlying EF and the the Azure db itself...
Do I need to add any scripting or other instructions to affect those changes OR is it simply a redeploy of the App Service via azd CLI?
@adrianhall, sorry to bug... any advice on this before I break stuff :)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions