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

Lazy loading not works after update to Version 3.0.3.2 #271

Closed
rdeharo opened this issue Feb 17, 2021 · 0 comments
Closed

Lazy loading not works after update to Version 3.0.3.2 #271

rdeharo opened this issue Feb 17, 2021 · 0 comments
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
Milestone

Comments

@rdeharo
Copy link

rdeharo commented Feb 17, 2021

After update to Version 3.0.3.2 (Entity Framework 6, Npgsql )

The tool generate a constructor for each entity like this:

public Person()
{
Country = new global::Sepadron.Modelos.Country();
State = new global::Sepadron.Modelos.State();
....

     Init();
  }

As you can see, it make a empty object for each "foreing key".
This cause he lazy loading not works.
If I comment this lines in the constructor the lazy loading works fine.
Can someone explain to me the reason for these lines of code and how I can make them not generate?

King Regards,

@msawczyn msawczyn added bug Confirmed bug pending release Issue is resolved in the current codebase, will be published with the next release labels Feb 18, 2021
@msawczyn msawczyn added this to the 3.0.4 milestone Feb 18, 2021
@msawczyn msawczyn added this to Enhancement Requests in EFDesigner via automation Feb 18, 2021
@msawczyn msawczyn moved this from Enhancement Requests to Done in EFDesigner Feb 18, 2021
@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 Feb 19, 2021
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