Page 1 of 1

EDMX won't Update

Posted: Wed 11 Dec 2013 16:45
by jappenzeller
Refreshing the model doesn't seem to be working. The new fields are there in salesforce, I even tried remove the entire model and rebuilding and they still don't show up.

Re: EDMX won't Update

Posted: Thu 12 Dec 2013 11:58
by Shalex
You should call salesforceConnectionObject.Cache.RefreshMetadata() in the code to update the local cache after the database schema is changed via web interface.
An alternative way is to remove the C:\Users\YOUR_OS_USER_NAME\Application Data\*.db files. dotConnect for Salesforce will recreate them on the next salesforceConnectionObject.Open().

For more information about cache management, refer to http://www.devart.com/dotconnect/salesf ... Cache.html.

Re: EDMX won't Update

Posted: Wed 26 Feb 2014 20:42
by jappenzeller
I saw the latest version said a bug with update model from database was fixed. Is this the bug that was fixed? Because using the wizard still does not update the model.

Re: EDMX won't Update

Posted: Thu 27 Feb 2014 11:19
by Shalex
Shalex wrote:You should call salesforceConnectionObject.Cache.RefreshMetadata() in the code to update the local cache after the database schema is changed via web interface.
An alternative way is to remove the C:\Users\YOUR_OS_USER_NAME\Application Data\*.db files.
Did you perform these steps? If yes, give us a detailed description of the problem you have encountered again.
jappenzeller wrote:I saw the latest version said a bug with update model from database was fixed. Is this the bug that was fixed?
Please refer to http://www.devart.com/dotconnect/salesf ... story.html and specify the exact text of the fix you are asking question about.

Re: EDMX won't Update

Posted: Sat 01 Mar 2014 23:36
by jappenzeller
where is salesforceconnectionobject defined?
Edit: Just figured out you wanted me to instantiate a new connection object and call that method. That seems to have worked. So I need to do this every time I want to change my model?

I thought the update wizard was supposed to be fixed so we didn't have to do this anymore.

Re: EDMX won't Update

Posted: Tue 04 Mar 2014 17:17
by Shalex
You can use the "Refresh Metadata=true;" connection string parameter if the schema is changed: http://www.devart.com/dotconnect/salesf ... tring.html.
Be aware that refreshing metadata on each connection.Open() will lead to the performance loses.