locked
Lazy loading RRS feed

  • Question

  • Does EF4 lazy loading support scalar properties?
    Saturday, June 20, 2009 4:06 PM

Answers

  • No.  This is something we want to do, but it didn't make this release.

    - Danny
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Sunday, June 21, 2009 4:09 AM

All replies

  • No.  This is something we want to do, but it didn't make this release.

    - Danny
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Sunday, June 21, 2009 4:09 AM
  • Although the lazy loading feature is not supported there is some options. For instance if you feel that most of the time you would want to delay load a particular property, you can split a table into multiple properties and delay load an association which is supported.

    Second option would be to partially fill an entity. This is not implemented in beta 1 but if it does make it to than this that could be another hack.


    Zeeshan Hirani
    Sunday, June 21, 2009 7:03 AM
  • Yes, I know about the workaround using entity splitting... but it is not as convenient as in NHibernate.
    Sunday, June 21, 2009 7:37 AM
  • More than 2 years later and still there is no Lazy Loading for Properties/Columns. Microsoft just doesn`t get it. I don`t want work-around a software I want work with software...
    Saturday, August 6, 2011 6:14 PM
  • lazy loading support was incorporated with .net 4.0 . there is an option in the contextoptions with the option to turn lazy loading on and off. It is turned on by default for .net 4.0 projects.
    Zeeshan Hirani Entity Framework 4.0 Recipes by Apress
    http://weblogs.asp.net/zeeshanhirani
    Tuesday, August 9, 2011 12:38 AM