I have added code to update the datasource of standalone tables that are sourced from an SDE database. The coding is very similar to SDE feature classes, especially when setting the connection properties. The behavior is odd because I can see that the connection properties of the standalone table have been updated immediately after running the Add-In, but the feature class connection properties do not appear to be updated immediately. I need to save the mxd and then close and re-open the mxd in order to see the updated connection properties.
Does anyone know why this is occurring?
Does anyone know how to get the connection properties of SDE feature classes in mxds to show changes immediately after the Add-In has finished running?
Any help or hints are greatly appreciated.