Edmx with whitespace in property names causes generation of invalid C# code
Describe the bug
I'm trying to import the latest Dynamics F&O OData metadata from our production environment. Unfortunately it seems that a bunch of navigation properties and other elements have spaces in the name. This causes generation of C# code that will not compile.
Assemblies affected
This is affecting version 1.5.1 in VS2022, so assembly Unchase.OData.ConnectedService.VS22.
Steps to reproduce
- Create a new C# assembly in VS2022.
- Create a connection using the attached emdx file d365meta.zip
- Attempt to compile the resulting code.
Expected result
The generated code should compile.
Actual result
The generated code does not compile, due to many examples of members with spaces in the name.
Screenshots

Additional detail
I've been looking at seeing if I could fix this myself. If I can figure out a nice solution I might make a pull request, but I'm not really familiar with VS add-in programming or OData metadata.
Just encountered the same exact problem!