Let's say I have 2 tables:
Entity (key EntityID, columns - StatusTypeID)
StatusType (key StatusTypeID)

I have a winforms application that has comboboxes on it.  The
comboboxes are populated from the StatusType mapping, and the selected
value is bound to the currently loaded Entity object column
StatusTypeID.

The problem I am having is, when the object loads via HQL and binds,
even though I am only accessing StatusTypeID from the Entity object,
it is doing a lazy load to load the StatusType.

I have more than one drop down on the form, so you can imagine making
a bunch of extra needless calls is going to cause performance
issues.   I have seen some people create a new read only property to
hold the id value, but that seems a little messy, so was hoping there
is a better way to do this.  Let me know if something is unclear.

-- 
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