Is there a better way to update Entity Models (* .edmx files)

I need to update a bunch of EDMX files in my solution. We divided our tables into groups, and each model represents one component or process. However, there are several overlapping tables, which sometimes means that I need to update / update several Entity models.

Updating a group of different entity models in VS 2008 is slow and dangerous. If I miss an outdated model, my application will not work

I need to verify that all models in my solution are updated with my development database.

Final Solution: How can I script this? Is there an API for Visual Studio to update an EDMX file? I do the same every time. Can't I program this?

Good. Decision. . Can I install something in Visual Studio to tell me when an entity model does not match the database? What is the recommended way to test a model on a database?

Thanks in advance.

+3
source share
3 answers

As far as I can tell, EdmGen will only work for WPF applications. Since you want to update the .EDMX file, you will not have access to the xml files that EdmGen is trying to verify.

I would suggest checking out the ADO.NET blog: http://blogs.msdn.com/adonet/archive/2008/06/26/edm-tools-options-part-3-of-4.aspx

, EDMX, . , VS10 .

+1

.edmx ( VS.Net). " ...". , , : . . , .

+1

Source: https://habr.com/ru/post/1719139/


All Articles