Custom object with nested collection
<p>Hi 
I've created an object that contains another collection in one of it properties. </p>

<p>This is the main object:</p>

<pre><code>public class MeterPrevReadInfo
{
    public int JobMeterID { get; set; }
    public string PreviousJobReference { get; set; }
    public FuelType MeterFuelType { get; set; }
    public List&lt;MeterPrevReadRegInfo&gt; Regs { get; set; }
    public DateTime DateMeterRead { get; set; }
}
</code></pre>

<p>This is the child object:</p>

<pre><code>public class MeterPrevReadRegInfo
{
    public string RegisterID { get; set; }
    public string MeterRead { get; set; }
}
</code></pre>

<p>I need to bind this object to a repeater control, I would like to show the <em>DateMeterRead</em> property and all the <em>MeterRead</em> properties in the repeater.</p>

<p>Is this possible using Linq? I could easily do it using a t-sql query from the database, but I just figured it should be possible to do this in memory without the overhead of another trip to the database.</p>

<p>Any help would be appreciated.</p>

<p>Thanks
Martin.</p>
