title: ASP Repeater with Linq to entities object - child list problem
body: <p>Hi I have a Linq CodeBehind Function Like this</p>
  
  <pre><code>var result = from m in context.Products.Include(n=&gt;n.Categories)
                   where m.IsActive == true
                   select m;
  </code></pre>
  
  <p>The m is Product Class which holds the list of categories.</p>
  
  <p>On the ASPX page in repeater I want to have acces to first category where my product is.
  I tried tu use code like:</p>
  
  <pre><code>&lt;a class="more" href="medication_details.aspx?id=&lt;%# Eval("Categories.ID") %&gt;&gt; 
  </code></pre>
  
  <p>The #Eval throws an error that Categories does not hold the property ID, and I think it's because products and categories are in relation one to many. how can I make in the aspx page reference like Categories[0].ID or sommthing??</p>