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

Foreign Keys on the generated constructor #21

Closed
danisss9 opened this issue May 13, 2022 · 1 comment
Closed

Foreign Keys on the generated constructor #21

danisss9 opened this issue May 13, 2022 · 1 comment
Labels
enhancement-M New feature request. Tshirt size: M released Issue is resolved in a current release
Milestone

Comments

@danisss9
Copy link

Problem:

I have a table City which has a 1..N association with Country (Allow Foreign Keys option is enabled).

image

When EFDesigner generates the class the constructor of the class is including the foreign keys fields.

image

Proposed behavior:

EFDesigner should not include foreign keys in the generated constructor, only the associative objects. (better if have an option to enable/disable this).

image

Current behavior:
Both foreign keys and associative objects are in the constructor.

Versions
EF Visual Editor: 4.1.2.0
Visual Studio 2022: 17.1.6

@msawczyn msawczyn added the enhancement-M New feature request. Tshirt size: M label Jun 27, 2022
@msawczyn
Copy link
Owner

This is something I've been meaning to do for quite some time now.

@msawczyn msawczyn added the pending release Issue is resolved in the current codebase, will be published with the next release label Jul 24, 2022
@msawczyn msawczyn added this to the 4.2 milestone Jul 24, 2022
@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 Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement-M New feature request. Tshirt size: M released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants