<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Convert ArrayList (of Objects) to DataSet</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 16:53:50 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 16:53:50 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>9</c9:totalResults>
	<c9:pageCount>-9</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p>I'm using NHibernate to access the database.<br>
NHibernate has a function to get a list of all elements of a persisted class (select * from table).<br>
<br>
The list it returns is an arraylist of objects of that persisted class, but I want to convert that arraylist to a dataset<br>
<br>
I tried to XmlSerialize the arraylist but it keeps failing (Type not expected)<br>
Binary serializing works but then I can't deserialize to a DataSet<br>
<br>
I hope you guys can help me out it's drivin' me nuts !!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/44043#44043</link>
		<pubDate>Thu, 03 Mar 2005 10:57:37 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/44043#44043</guid>
		<dc:creator>DiViNO</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/DiViNO/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p>First of all: NHibernate - :-! no further comments <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif' alt='Big Smile' /><br>
<br>
Second: you are serializing an ArrayList and want to deserialize it as DataSet or what?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/6e0bb7128b3c4eb78bee9dea0119ec25#6e0bb7128b3c4eb78bee9dea0119ec25</link>
		<pubDate>Thu, 03 Mar 2005 12:11:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/6e0bb7128b3c4eb78bee9dea0119ec25#6e0bb7128b3c4eb78bee9dea0119ec25</guid>
		<dc:creator>Christian Liensberger</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/littleguru/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p>I have an ArrayList and I want to convert it to a DataSet through serializing the ArrayList (XmlSerializer)<br>
<br>
I found the problem:<br>
The class of the objects that are in the ArrayList contain a property that returns a Collection (Nhibernate.Collection.Set)<br>
If I use on that property the XmlIgnore attribute it serializes perfect, but without the Collection...<br>
<br>
Is there a way to include that collection into the serialized&nbsp;XmlSchema?<br>
<br>
btw: U don't like Object/relational mapping&nbsp;or you just don't like&nbsp; Nhibernate ? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /><br>
<br>
---------------------<br>
<br>
Or is there a method to use an ArrayList as DataSource of a DataGrid, so it allows sorting (wich isn't the case if you bind an ArrayList to a DataSource)</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/8dfa387e9773490b82289dea0119ec52#8dfa387e9773490b82289dea0119ec52</link>
		<pubDate>Thu, 03 Mar 2005 14:55:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/8dfa387e9773490b82289dea0119ec52#8dfa387e9773490b82289dea0119ec52</guid>
		<dc:creator>DiViNO</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/DiViNO/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p><blockquote>
<div>DiViNO wrote:</div>
<div>btw: U don't like Object/relational mapping&nbsp;or you just don't like&nbsp; Nhibernate ? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /></div>
</blockquote>
<br>
He's a developer of a competing framework (hint: username matches site).<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/b19c9bd2a3724729a1ff9dea0119ec7b#b19c9bd2a3724729a1ff9dea0119ec7b</link>
		<pubDate>Thu, 03 Mar 2005 16:25:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/b19c9bd2a3724729a1ff9dea0119ec7b#b19c9bd2a3724729a1ff9dea0119ec7b</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p><blockquote>
<div>sbc wrote:</div>
<div>
<blockquote>
<table>
<tbody>
<tr>
<td><img src="/Themes/redesign/images/icon-quote.gif"></td>
<td><strong>DiViNO wrote:</strong> <i>btw: U don't like Object/relational mapping&nbsp;or you just don't like&nbsp; Nhibernate ? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /></i></td>
</tr>
</tbody>
</table>
</blockquote>
<br>
He's a developer of a competing framework (hint: username matches site).<br>
</div>
</blockquote>
<br>
<br>
It's not that. I don't know, i don't like the NHibernate port for .NET. It's to much JAVA-alike for me. You have to do the mapping in xml etc... That's java practise not .NET!
<br>
<br>
There are also other nice frameworks out there, not only mine. For example XPO or others...</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/49dde2f770c04d0191b09dea0119eca6#49dde2f770c04d0191b09dea0119eca6</link>
		<pubDate>Fri, 04 Mar 2005 01:40:01 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/49dde2f770c04d0191b09dea0119eca6#49dde2f770c04d0191b09dea0119eca6</guid>
		<dc:creator>Christian Liensberger</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/littleguru/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p><blockquote>
<div>littleguru wrote:</div>
<div>
<blockquote>
<table>
<tbody>
<tr>
<td><img src="/Themes/redesign/images/icon-quote.gif"></td>
<td><strong>sbc wrote:</strong><i>
<blockquote>
<table>
<tbody>
<tr>
<td><img src="/Themes/redesign/images/icon-quote.gif"></td>
<td><strong>DiViNO wrote:</strong> <i>btw: U don't like Object/relational mapping&nbsp;or you just don't like&nbsp; Nhibernate ? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /></i></td>
</tr>
</tbody>
</table>
</blockquote>
<br>
He's a developer of a competing framework (hint: username matches site).<br>
</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br>
<br>
It's not that. I don't know, i don't like the NHibernate port for .NET. It's to much JAVA-alike for me. You have to do the mapping in xml etc... That's java practise not .NET!
<br>
</div>
</blockquote>
<br>
Perhaps it is to encourage Java developers to .NET - after all it is based on <a href="http://hibernate.org/">
Hibernate</a> (which is a Java framework). Would be strange if NHibernate was not Java-like.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/3642ef53091c47efa4f29dea0119ecd0#3642ef53091c47efa4f29dea0119ecd0</link>
		<pubDate>Fri, 04 Mar 2005 11:54:10 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/3642ef53091c47efa4f29dea0119ecd0#3642ef53091c47efa4f29dea0119ecd0</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p><blockquote>
<div>sbc wrote:</div>
<div><br>
Perhaps it is to encourage Java developers to .NET - after all it is based on <a target="_blank" href="http://hibernate.org/">
Hibernate</a> (which is a Java framework). Would be strange if NHibernate was not Java-like.<br>
</div>
</blockquote>
<br>
<br>
It isn't strange to have to change to a Java mind-set when using a .NET library?<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/19ed77060c0d467294389dea0119ecf8#19ed77060c0d467294389dea0119ecf8</link>
		<pubDate>Fri, 04 Mar 2005 17:51:55 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/19ed77060c0d467294389dea0119ecf8#19ed77060c0d467294389dea0119ecf8</guid>
		<dc:creator>geekling</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/geekling/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p><blockquote>
<div>littleguru wrote:</div>
<div>It's not that. I don't know, i don't like the NHibernate port for .NET. It's to much JAVA-alike for me. You have to do the mapping in xml etc... That's java practise not .NET!
<br>
<br>
<br>
There are also other nice frameworks out there, not only mine. For example XPO or others...</div>
</blockquote>
<br>
<br>
<br>
You're right.<br>
<br>
I don't get why you have to declare your relationships again in the xml files, they are already defined in the database!<br>
Aren't&nbsp;there any frameworks&nbsp;that reflect&nbsp;your database schema and put them into businesslogic?<br>
<br>
I took NHibernate because it's open source.<br>
LLBLGEN looks very nice, but has it's cost also.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/bc84ca0fafb34d24967b9dea0119ed21#bc84ca0fafb34d24967b9dea0119ed21</link>
		<pubDate>Fri, 04 Mar 2005 19:20:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/bc84ca0fafb34d24967b9dea0119ed21#bc84ca0fafb34d24967b9dea0119ed21</guid>
		<dc:creator>DiViNO</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/DiViNO/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Convert ArrayList (of Objects) to DataSet</title>
		<description><![CDATA[<p>Have not tried it, but what about using<br>
<br>
ArrayList.ToArray(type) <br>
<br>
and serialising that? If type is set to the correct object in the arraylist it ought to work.<br>
<br>
If not, try casting it to an array and then serialising that:<br>
<br>
Ctype(ArrayList.ToArray(type), type())<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/0bde157ba57a487d92439dea0119ed62#0bde157ba57a487d92439dea0119ed62</link>
		<pubDate>Sat, 05 Mar 2005 17:38:54 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/44043-Convert-ArrayList-of-Objects-to-DataSet/0bde157ba57a487d92439dea0119ed62#0bde157ba57a487d92439dea0119ed62</guid>
		<dc:creator>quango</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/quango/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>