-
Notifications
You must be signed in to change notification settings - Fork 60
unidirectional association 1 to 1 not accpeted by EFc5 or EFDesigner #252
Comments
Unfortunately, EFCore5 doesn't yet support N-to-N unidirectional associations. |
hi, |
Hi, Regards |
Hello, I made a little project that recreates the issue. You can download it by following this link. Regards |
Thanks for the file, and a happy new year to you too! I was able to open the model and generate code without any issues. Possibly whatever was causing the problem was fixed by another change. I'll close this for now and ask you to give it a try with the next release, which should be out today or later this weekend. If you still encounter problems, please feel free to reopen. |
Hello, regards |
That's a limitation of the previous version. |
Hi, best regards |
There is an issue with the designer and its mapping of capabilities to the selected EF version that's (hopefully) fixed in 3.0.4, the RC1 being available at https://github.com/msawczyn/EFDesigner/raw/master/dist/Sawczyn.EFDesigner.EFModel.DslPackage.vsix If you could give that file a try, I'd be in your debt. |
Hello, Someone can tell to microsoft to stop announce a new major version while the current version is not already stable. best regards |
LOL. No fear. While the Nuget package for v6 exists, and therefore is detected by the designer and shown in the property selector, there is currently no support for anything new in v6 for code generation or new features. I am concerned, however by your report of |
Hello,
i can open and display the model, and display the properties of entities or
relations, but not the properties of the model, and so i can not select EFc
version,...
Best regards
Le jeu. 18 févr. 2021 à 12:31, Michael Sawczyn <notifications@github.com> a
écrit :
… LOL. No fear. While the Nuget package for v6 exists, and therefore is
detected by the designer and shown in the property selector, there is
currently no support for anything new in v6 for code generation or new
features.
I am concerned, however by your report of but now i can not display the
properties of the model. That's nothing neither I've seen nor any other
user has encountered. Do you mean that, when opening an .efmodel file it
doesn't open, or when you get it open you can't select anything (including
the design surface) and get the property window to display that selection's
properties?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#252 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANW4IQ5HDBRDY4ISFSYKVRDS7T273ANCNFSM4VF4L2LA>
.
|
@pas059 - we need to diagnose this by process of elimination. Let's try something, if you're willing. Create a new model file in that or some other project. Can you view/edit the designer surface properties there? If you still can't view those properties on a new model, grab one of the models in the testing solution (under https://github.com/msawczyn/EFDesigner/tree/master/src/Testing) and try it. Those work fine for me. |
Hello, An idea? |
hello again, |
Hello, If this can help |
I'm trying to get back in the swing of things again ... was this ever resolved? I see it's tagged as Released, so I'm guessing it was, although I don't want to close it without confirmation. |
Hi, now my devlopment environnement is VS2019CE Vers 16.9.4 and EFDesigner 3.0.4.7. In both cases, this makes EFDesigner unusable. No emergency for my current app which does not changes from the DB point of view, but very soon i'd like to migrate to EFc5 (6?) .... Regards |
If a property is the same as the default, as defined in the DSL code, it's not written to the XML file, so you won't see it there. |
We need to divide this problem up and start eliminating possibilities. Would you be willing to send me a file you can't open correctly? I'll see what it does on my computer. |
Hello,
i have a very little model that produces the same error which is:
Échec de l'appel de la méthode de validation
'OwnedTypeCannotBeInBidirectionalAssociation' WinFormsApp2
Failed to call validation method
'OwnedTypeCannotBeInBidirectionalAssociation' WinFormsApp2
the corresponding model is i joined file. With the model of my app, which
is larger, i get 4 times this error.
regards
Le mer. 5 mai 2021 à 21:42, Michael Sawczyn ***@***.***> a
écrit :
… We need to divide this problem up and start eliminating possibilities.
Would you be willing to send me a file you can't open correctly? I'll see
what it does on my computer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#252 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANW4IQ4AESWPIH4R7AQCKSTTMGNSTANCNFSM4VF4L2LA>
.
|
Hi, |
Hello,
I updated an app using Net 4.7.2 + EFc 3.1 to Net 5 + EFc 5; without asking EFDesigner to regenerate the files, everything run fine.
Today, i also updated EFDesinger to the latest version, and changed the 'Entity Framework Package Version' of my 'efmodel' to the '5.0.Latest'; this produces an error each time i have an 1 to 1 unidirectional association between en entity and a dependant entity. The error messages are like this one:
Organization.Address --> Address: The association from Address to Organization must be 1..0-1
Is this caused by a changes in EFc 5 that i did not saw or by the new version EFDesigner?
Regards
The text was updated successfully, but these errors were encountered: