With NHibernate 3 you can create lazy properties.
But first, make sure you are not optimizing prematurely. Are you
experiencing REAL performance problems if you load the full object? If so,
have you tried enabling caching?

   Diego


On Tue, Mar 23, 2010 at 21:09, Schotime <[email protected]> wrote:

> Quick question..
>
> I have a user who belongs to a company (m:1) but the company has over
> 20 fields, but most of the time I only need a few. Is there a way to
> have a component (or something/1:1) mapping where the other fields can
> be lazy loaded.
>
> Could I put all the extra fields in a new class CompanyInfo and only
> load CompanyInfo when you access it?
>
> Thanks.
> Adam
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to