-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to get specific columns data using Nhibernate
PostPosted: Thu Aug 06, 2009 6:48 am 
Newbie

Joined: Wed Jul 22, 2009 7:17 am
Posts: 2
Hi,

How can we get specific columns data using n-hibernate.

Using IQuery I am getting the selected columns data. Following is my example code

IQuery qry = session.CreateQuery("Select cat.Categoryname from cat in class TestDBCat");
IList myCat = qry.List();

In this way I am getting the Categorynames only to “myCat” list from the “TestDBCat” table.
Here I have to create the query to get the selected columns.

Is there any way to get the specific columns data,without doing this Iquery.
Is it possible to get specific columns data with out query? If possible how can we do this?

Any help can be appreciated.

Regards
Kiran


Top
 Profile  
 
 Post subject: Re: How to get specific columns data using Nhibernate
PostPosted: Tue Aug 18, 2009 8:26 pm 
Newbie

Joined: Tue Aug 18, 2009 3:42 am
Posts: 2
Is there any way to get the specific columns data,without doing this Iquery.
proprietaire simulation rachat credit immobilier consommation - demander un rachat de crédit, faites une simulation rachat de credit en ligne.proprietaire simulation rachat credit immobilier consommation


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.