Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lazy Properties in NHibernate
Message
De
27/01/2010 11:41:16
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
27/01/2010 11:21:52
Information générale
Forum:
ASP.NET
Catégorie:
Produits tierce partie
Divers
Thread ID:
01446159
Message ID:
01446178
Vues:
31
>>New feature coming to NHibernate: http://ayende.com/Blog/archive/2010/01/27/nhibernate-new-feature-lazy-properties.aspx
>>
>>Does EF have this functionality available?
>
>Looks like it's in EF in .NET 4 - but I haven't tried it
>
>One thing I noticed in the link:
>
>"What about multiple lazy properties? NHibernate support them, but you need to keep one thing in mind. NHibernate will load *all* the entity’s lazy properties, not just the one that was immediately accessed."
>
>Not sure whether this is a good thing or a bad thing - bottom line is it will depend on the circumstances but there's nothing you can do about it. Also I've no idea whether EF will have the same behaviour.......

Sure, but I would imagine that a lazy property would be an exception rather than the norm, right? So maybe it wouldn't be that big of a deal to load all of entity's lazy properties.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform