don't fetch any of the related entities.

var entity = session.Get<Entity>(id);
var entity = session.QueryOver<Entity>().Where(...).Take(1).FutureValue();

you'll still be able to traverse the entity and lazy load the other 
relationships. like this

entity.Child.GrandChild.Value

If you don't want that you will need to detach the entity from the session.

var entity = session.Get<Entity>(id);
session.Detach(entity);

On Tuesday, December 4, 2012 5:01:22 AM UTC-5, Usman Khan Mohammad wrote:
>
> I want to get only Parent entity object excluding its child entity's. How 
> to do that.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/ilGC5Od5e04J.
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