Lazy loading not works after update to Version 3.0.3.2
rdeharo opened this issue · 0 comments
rdeharo commented
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,