'Errors when "Update model from database" VS2022 and EF5

I am trying to sync EF5 w/ the database by: stackoverflow.com/questions/9708189/… Issue is that after I choose "Updates model from Database" there are errors.

The entities are listed in the Auto-generated designer.cs file as a partial class with their properties. Designer .cs file

But a separate partial class file is also Auto-generated for each entity. Err msg: The type 'HealthCount' already contains a definition for 'HLTH_CNTY_ID_NB'. I am assuming this is because the class properties are listed in both partial classes. And it is not recommended to modify Auto-generated files.

Entity class file

Error message:error message on duplicate property

Any help will be greatly appreciated!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source