lazy loading - NHibernate: Lazyload single property -


I recently moved my blogging from Linq2Sql to NHIbernate.

I am stuck in following issue of performance: I have a table: 'post', whose ID, title, post content, date-ready columns and so on.

The problem is, when I am creating "Recent Post List", I do not want the whole PostContent .

In Linq2Sql you can set lazy loading on single property, so long as you do not really ask, it will not be part of the SQL query

Map ( X => x.PostContent).

>

It was not working It seems that NHibernate does not support this, so my The question is how can I fix it?

Is it possible to load the free without having to load your property in separate tables?

Update: This capability is now available in NHibernate.

See the details, where the sample absolutely is the scenario that you describe.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -