Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 Cannot Update EDMX Entity Model from Database

All of a sudden I cannot update the .edmx files I have in all of my projects in Visual Studio 2022. This is something I have done tons of times on various projects for years: open the .edmx, right click empty space, "Update Model from Database".

Now it brings up a dialog for choosing my data connection (the connection strings are already in the config files and have been for years). Then the dialog just closes with no errors at all. Happens for all projects and don't know where to go from here?

like image 808
Nick Reeve Avatar asked Mar 14 '26 22:03

Nick Reeve


2 Answers

I just experienced the same issue with Visual Studio 2022, and upon further investigation, I discovered that there are issues with VS2022 and .edmx from version 17.4 onwards.

Nevertheless, it appears that the development team behind VS2022 is already aware of this issue and is expected to release a new version that addresses it. However, I was able to "fix" it temporarily by following the workaround mentioned in the link, which involved removing “MultipleActiveResultSets=True;” from the connection string in the app.config.

like image 53
Nelson Filipe Avatar answered Mar 16 '26 11:03

Nelson Filipe


Microsoft has fixed this issue in the 17.5.5 version. I update mine and it worked! Hope this will help.

like image 37
An Khang Avatar answered Mar 16 '26 10:03

An Khang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!