<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to select top in ORM?"]]></title>
		<link>http://forums.visual-paradigm.com/posts/33.html</link>
		<description><![CDATA[Latest messages posted in the topic "How to select top in ORM?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to select top in ORM?</title>
				<description><![CDATA[ I hve tried to limit the returned results in ORM but unsuccessfully(= select top), I can only use Procedure to resolve this problem but this is not good because i must regenarate ORM layer each time i have a new Procedure. Can anyone give me a solution? thank you very much.  :roll: ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2221#17625.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2221#17625.html</link>
				<pubDate><![CDATA[Sat, 2 Jun 2007 12:45:40]]></pubDate>
				<author><![CDATA[ ichbinvinh]]></author>
			</item>
			<item>
				<title>Re:How to select top in ORM?</title>
				<description><![CDATA[ Hello ichbinvinh,<br> <br> You may try using Criteria. Please call: criteria.setMaxResults()<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2221#17641.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2221#17641.html</link>
				<pubDate><![CDATA[Mon, 4 Jun 2007 10:18:25]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:How to select top in ORM?</title>
				<description><![CDATA[ hello Jick,<br> i use ORM.net of olero not nHibernate for ASP.NET 2.0. I must do that<br> <br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>DataManager dm = new DataManager&#40;Config.Dsn&#41;;
         DataSet ds = dm.FillDataSet&#40;"SELECT TOP 5 * FROM Article ORDER BY Hits DESC", true&#41;; 
         // merge the data into DataManager 
         dm.PopulateObjectsFromDataSet&#40;ds, "Article"&#41;;
         ArticleCollection ac = dm.GetArticleCollectionFromDataSet&#40;&#41;.FilterByLangCode&#40;BasePage.CurrentLanguage&#41;;
         DataList.DataSource = ac;
         DataList.DataBind&#40;&#41;;</pre></td>
		</tr>
		</table><br> <br> thanks for reply me]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2221#17643.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2221#17643.html</link>
				<pubDate><![CDATA[Mon, 4 Jun 2007 14:57:38]]></pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:How to select top in ORM?</title>
				<description><![CDATA[ If ORM could generate hbm with 'formula' as property element in property tag it might not need criteria.setMaxResults() <br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2221#21821.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2221#21821.html</link>
				<pubDate><![CDATA[Mon, 25 Feb 2008 16:55:39]]></pubDate>
				<author><![CDATA[ Santm]]></author>
			</item>
	</channel>
</rss>