﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Converting an object collection to a DataSet</title><description>Writing your own grid :-)
  
I don't kid, BTW.
  
A simple option is nested repeaters
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment14</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment14</guid><pubDate>Thu, 14 Jun 2007 13:41:24 GMT</pubDate></item><item><title>richard commented on Converting an object collection to a DataSet</title><description>I think have the same problem with grid controls (radGrid, ms grid etc.)
  
  
NHibernate does a great job of getting me a List of Orders (with a property for a collection of OrderItems).  While I can bind the Orders to a Grid, when I wat a second level nested table for the OrderItems I cannot do this. Despite this feeling natural to me.   I am now thinking I need to start looking at DataSets to do this, unless any of you cna think of other options?
  
  
Thanks
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment13</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment13</guid><pubDate>Thu, 14 Jun 2007 13:37:38 GMT</pubDate></item><item><title>Ayende Rahien commented on Converting an object collection to a DataSet</title><description>That you don't always need a super smart framework to do this kind of things.
  
People asked how I am doing it, this is stupid code, very simple, one purpose only. It is used for something that I need once every blue moon, so I just wrote it instead of building a framework.
  
In other words, this is a post about "no magic involved"
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment12</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment12</guid><pubDate>Thu, 10 May 2007 09:05:36 GMT</pubDate></item><item><title>Nikola Malovic commented on Converting an object collection to a DataSet</title><description>I'm sure I'm missing somthing big here because I don't see anyything worth the Ayendes blog in the post about how to iterrate through  collection and put the collection members in the data set rows 
  
  
So, what I'm missing? :) 
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment11</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment11</guid><pubDate>Thu, 10 May 2007 08:41:54 GMT</pubDate></item><item><title>Darius Damalakas commented on Converting an object collection to a DataSet</title><description>For converting object lists into datasets we've written a simple class, which would put required properties (even nested ones) into a new datatable.
  
  
why write so many code :)
  
  
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment10</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment10</guid><pubDate>Thu, 10 May 2007 06:54:32 GMT</pubDate></item><item><title>Ayende Rahien commented on Converting an object collection to a DataSet</title><description>Frans,
  
I didn't do it because I needed it for ~4 reports. Wasn't worth the time to invest in it.
  
  
Thanks.
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment9</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment9</guid><pubDate>Thu, 10 May 2007 03:35:35 GMT</pubDate></item><item><title>Frans Bouma commented on Converting an object collection to a DataSet</title><description>Why didn't you go for a projection engine for nhibernate instead? It shouldn't take that long to write and it then gives you the ability to project any graph to datasets/tables etc. (took me about a week or so for llblgen)
  
  
the fun thing is that you then could put that engine to work for projecting entity graphs onto webservice message objects for example (object-document mapping)
  
  
Btw, good luck next week in Montreal with the ORM Smackdown against Ted 'I-don't-like-orm' Neward :D
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment8</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment8</guid><pubDate>Wed, 09 May 2007 20:09:46 GMT</pubDate></item><item><title>Ayende Rahien commented on Converting an object collection to a DataSet</title><description>Not going to work, I am also doing some flattening of the data, so it is actually something like:
  
  
row["MotherMaidenName"] = customer.Mother.Maiden.Name;
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment7</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment7</guid><pubDate>Wed, 09 May 2007 18:23:19 GMT</pubDate></item><item><title>Derik Whittaker commented on Converting an object collection to a DataSet</title><description>I was also going to suggest that you could serialize the objects to xml then load them into the dataset.  this would save you from having to do a bunch of property assignment.  Would also lessing the chance of breakage do to coding changes.
  
  
Not sure if it would work though.
  
  
Derik
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment6</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment6</guid><pubDate>Wed, 09 May 2007 18:19:54 GMT</pubDate></item><item><title>Bobby Diaz commented on Converting an object collection to a DataSet</title><description>I have used XML Serialization in the past for a similar situation but I am not sure if it would be a good fit for you or which would perform better.
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment5</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment5</guid><pubDate>Wed, 09 May 2007 17:33:27 GMT</pubDate></item><item><title>Adam Tybor commented on Converting an object collection to a DataSet</title><description>I have used this code in projects before.  Sorry for the bad code formatting I am still a little new to this blog thing.
  
  
http://abombss.wordpress.com/2007/05/09/nhibernate-to-dataset/
  
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment4</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment4</guid><pubDate>Wed, 09 May 2007 17:26:03 GMT</pubDate></item><item><title>Ayende Rahien commented on Converting an object collection to a DataSet</title><description>That is not possible because I need to talk to a Reporting Service that calls me via web service, while I may be able to hand the data directly to a local instance, in this case, they are two distinct application, on different servers.
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment3</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment3</guid><pubDate>Wed, 09 May 2007 17:16:20 GMT</pubDate></item><item><title>Nermin DIbek commented on Converting an object collection to a DataSet</title><description>I am wondering what reporting tool are you using? If you are building on top of.Net 2.0+, anything that you pass the DataSet to you should be able to pass BindingList&lt;T&gt;.  Then the code could just be:
  
  
BindingList&lt;Customer&gt; boundCustomers = new BindingList&lt;Customer&gt;(customers);
  
return boundCustomers;
  
  
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment2</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment2</guid><pubDate>Wed, 09 May 2007 17:12:05 GMT</pubDate></item><item><title>Andrea Dottor commented on Converting an object collection to a DataSet</title><description>Simply perfect! ;o)
  
  
"Do the simplest thing that could possibly work" [Kent Beck]
</description><link>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment1</link><guid>http://ayende.com/2376/converting-an-object-collection-to-a-dataset#comment1</guid><pubDate>Wed, 09 May 2007 16:07:02 GMT</pubDate></item></channel></rss>