Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

dependant entities not created #287

Closed
pas059 opened this issue May 21, 2021 · 1 comment
Closed

dependant entities not created #287

pas059 opened this issue May 21, 2021 · 1 comment
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
Milestone

Comments

@pas059
Copy link

pas059 commented May 21, 2021

Hi,

using the latest version of EFc Designer (3.0.6.1), i noticed that the code relative to dependant Entity is not generated correctly. For instance, if an entity 'Patient' owns a dependant entity Address, the constructors of Patient don't include the code to create instance of Address (something like this.Address = new Address();). consequently, exceptions are generated as soon Patient.Address is used.

regards

@msawczyn msawczyn added the bug Confirmed bug label May 31, 2021
@msawczyn msawczyn added this to Enhancement Requests in EFDesigner via automation May 31, 2021
@msawczyn msawczyn moved this from Enhancement Requests to Bug Reports in EFDesigner May 31, 2021
@msawczyn msawczyn added the pending release Issue is resolved in the current codebase, will be published with the next release label Jun 5, 2021
@msawczyn msawczyn added this to the 3.0.7 milestone Jun 5, 2021
@msawczyn msawczyn moved this from Bug Reports to Done in EFDesigner Jun 6, 2021
msawczyn added a commit that referenced this issue Jul 9, 2021
   - Fixed a number of issues with importing compiled assemblies
   - Fixed coloring of cascade delete associations when flagged on the model (see #291)
   - Fixed missing '$' in generator template that was generating bad code for table schemas (see #289)
   - Restored auto-instantiation of dependent objects in entity constructors (see #287)
   - Added Microsoft.VisualStudio.Modeling.Components.15.0.dll to DslPackage assembly (see #293)
@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 Oct 10, 2021
@msawczyn
Copy link
Owner

Released in v3.0.7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
EFDesigner
  
Done
Development

No branches or pull requests

2 participants