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
Unable to update model
Re: Unable to update model
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
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!
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
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.mpdjhb wrote:How do I get the model to now recognize the table has changed? What exactly must I click on etc?
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
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.
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
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.
2. Specify your current version (x.x.x) of LinqConnect.