This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
1 to many unidirectionnal association #263
Comments
If I change the Multiplicity to "0..1 (Zero or one of 'xxx')" the error does no exists. When I change it to the Bidirectional Association with the same Multiplicity, then the code will be generated correctly. Kind regards |
msawczyn
added
the
pending release
Issue is resolved in the current codebase, will be published with the next release
label
Feb 11, 2021
Heh. Doesn't matter - it's pervasive. I found the issue and it'll be fixed in 3.0.4. In the meantime, if it's blocking you, you can add EFModelGenerator.ttinclude to your project and change the code starting at line 708 to:
The addition of the Thanks for the report! |
hi, |
msawczyn
added a commit
that referenced
this issue
Feb 11, 2021
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
Feb 19, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I notice errors in code generation with the '1 to many unidirectional association's. For instance, gieven an entity Organization and an entity Product, and an association 1 to many from Organization to Product, the generated constructor for Product is:
The line
this._organization0 = _organization0;
is generated, but not a class memberthis._organization0
. With EFDesigner 2.x this line is not generated. I think that this line should not be generated, or eventually that the corresponding data member be generated.Regards
The text was updated successfully, but these errors were encountered: