I have imported on VS 2015 a MVVM solution developed under older versions (2010). I should to update an Entity Data Model, to add some fields to a table. So, I decided to modify the XML code (as I used to do in VS2010), and this works. But when I try to rebuild solutions, I get a lot of errors. After several researches, I found out that every change to the DataModel.edmx file (both via XML or graphic designer), causes the corresponding MyProject/MyProjectModel/DataModel.Designer.vb file to be completely deleted! I also noted that creating a new EDM file causes several files to be created under MyProject/MyProjectModel/ folder. in details, I found - NewModel.edmx - NewModel.vb - NewModel.context.vb - NewModel.Designer.vb (empty) - NewModel.tt - [Table].vb for every table in the model while in the older version just .edmx and .Designer.vb files were created, and all tables definitions and table-class mappings were included in [Model].Designer.vb. How can I resolve this bug? It would be better all model data would be in [Model].Designer.vb file. thans for help
Visual Studio 2015 and Entity Data Model. Errors when rebuilding after uptating .edmx file
244 views Asked by calacausi At
1
There are 1 answers
Related Questions in VISUAL-STUDIO-2015
- Migrate Old VS 2015 .suo file to the New VS 2022 DocumentLayout.json
- Visual Studio write to Office 365 word
- timestamp(6) oracle datatype issue while loading the data from one Oracle table to another using SSIS
- BIML to create multiple projects in a single solution
- Is there a possibility to Checkout all git Branches of one solution at the same time?
- Warning of installing redistrubatble in Visual Studio 2015
- How add conditional Instalation Targets in manifest file in Visual studio
- How can I access the summary information of a dll file installed in the GAC directory?
- CMake failed to check C++ compiler with Visual Studio 2015
- Local Reports in Visual Studio 2022
- Where is the location of cl.exe of VS2015 msvc build tool (v140) in VS2022
- "Stop debugger when browser window is closed" is missing in Visual Studio 2015
- Visual Studio 2015 is crashing after modify and save EDMX changes on the development system
- Bug in debug mode in Visual Studio 2015, which depends on the file size
- Visual Studio 2015 cannot update program database (error C2471)
Related Questions in ENTITY-DATA-MODEL
- How do I map M:N relationship whose otherside is a weak entity?
- Entity Framework database-first workflow designer failed
- Update model from Firebird database
- Data Model - Regions and Countries
- Getting Error While Setting The data to Sql Db, Saying Cannot set the Value of Created at with Null
- While trying to create entity data model, I get authorization exception
- Entity Data Model Wizard Gets Exception When Trying to Add a New Oracle Connection
- Could not update model from database?
- Visual Studio 2015 and Entity Data Model. Errors when rebuilding after uptating .edmx file
- Relational model to entity relationship - Database
- API to query your Entity Framework context's model?
- Visual Studio 2015 Add new data source wizard missing entity data model
- ADO.NET Entity Data Model vs DataSet vs Entity Framework?
- ADO.NET Entity Framework and ADO.NET Entity Data Model?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
They have changed how the generated files are generated and the specific files themselves.
When you are rebuilding the projects it is generating the new files under the new model. You can switch to this new model by making the necessary corrections and then going forward keep up with this new model.
Alternatively you can also open the edmx model in the model designer. Right click on the model and open select Properties and the menu (you could press Alt-Enter instead) to bring up the properties window (it could be already there).
In the properties windows, under the heading "Code Generation", "Code Generation Strategy" choose "Legacy Object Context" and try rebuilding again.
It should be ok though in some cases I have seen it still create some of the newer files without deleting the older ones. In that case delete the new ones after an update.