Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same entity with multiple navigation properties on same different entity creates invalid classes #50

Closed
SimonNeP opened this issue Oct 24, 2022 · 4 comments
Labels
bug Something isn't working released Issue is resolved in a current release
Milestone

Comments

@SimonNeP
Copy link

Hello,

after upgrading to dotnet 6 and the current version of the EF Modeler, there seem to be some issues regarding constructor generation. I have created the following model:
image

This did work before updating to Dotnet 6 and the current version. It generated one constructor with al requiered entity and a static "Create" constructor. But now it generates multiple constructors:
image

This leads to errors, because different constructors with same signature are created. I did not find any settings to disable this or clues in the documentary

@SimonNeP
Copy link
Author

Versions
EF Visual Editor: 4.2.1.3
Visual Studio 2022: 17.3.6
Dotnet 6

@SimonNeP
Copy link
Author

On the real project it also generated constructors without the dependent properties, which are requiered as well (example config):
image

There are two Constructors for the child, one without the parent and the other with the property parent included.

@SimonNeP
Copy link
Author

Furthermore it clearly appeared after upgrading from v4.1.2.0 to v4.2.1.3
image

@msawczyn msawczyn added the bug Something isn't working label Oct 24, 2022
@SimonNeP
Copy link
Author

Just wanted to ask if there is any progress for this bug.
Also wanted to add that I've been using this tool for roughly two years now and it's great. I have no knowledge of programming tools like this, but if there's sommething I can help with just say so.

@msawczyn msawczyn added this to the 4.2.3 milestone Mar 14, 2023
@msawczyn msawczyn added the pending release Issue is resolved in the current codebase, will be published with the next release label Mar 14, 2023
@msawczyn msawczyn added released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants