Page 1 of 1

Unable to update model

Posted: Wed 11 May 2016 07:31
by mpdjhb
I have a model with a number of tables in it.
Whenever I need to change the underlying table (add, drop columns for example) I cannot seem to get the model to update without recreating it entirely (delete model, add new one).
I am also unable to add or remove tables from a model.

I have tried refreshing the database connection (and in there I can see the new or removed columns).
I have tried regenerating the model (this does "nothing" - model is unchanged)

What am I missing please?


Using mysql 5.6 Cluster, Percona Version

Re: Unable to update model

Posted: Thu 12 May 2016 09:56
by Shalex
Please send us a small test project and specify the exact steps we should follow with it for reproducing the issue.

Re: Unable to update model

Posted: Sun 15 May 2016 05:03
by mpdjhb
The steps are trivial, so if I may, let me post here:

I have percona 5.6 (both server and cluster, on different machines)
All databases are on Ubuntu Linux, Code is on Windows 10, 2015 Visual Studio


Create a database call temp, with a table called temptable (id int);
Build a LINQ model (New...Data...DevartLinqModel)

Save, compile, build etc

Go back to mysql, add a new column to the table:
alter table temptable add mynewfield char(10);

Go back to C#:
How do I get the model to now recognize the table has changed? What exactly must I click on etc?

Many thanks!

Re: Unable to update model

Posted: Wed 18 May 2016 10:29
by Shalex
mpdjhb wrote:How do I get the model to now recognize the table has changed? What exactly must I click on etc?
Please open your *.lqml model, right click the diagram surface > Update Model From Database, follow the wizard to update model, then save the model to regenerate the code.

For more information, refer to http://www.devart.com/entitydeveloper/e ... eloper.chm > ORM Support > LinqConnect > Synchronizing Model and Database Data > Updating Model from Database. If the pages of *.chm are empty, right click the *.chm file, select Properties, and click on the "Unblock" button. Click "Apply" to show the content.

Re: Unable to update model

Posted: Tue 24 May 2016 09:45
by mpdjhb
Good day

I tried all the suggestions and I am still not able to update a model.

I have to delete and rebuild each time.

Re: Unable to update model

Posted: Tue 24 May 2016 17:47
by Shalex
1. Please send us a small test project and specify the exact steps we should follow with it for reproducing the issue.
2. Specify your current version (x.x.x) of LinqConnect.