title: Repeater control with strongly typed objects entity framework
body: <p>I am new to entity framework, and wondered if someone could help. I have 2 classes that define documents and then their versions (1 to many relationship).</p>
  
  <p>I am using the asp:repeater to display the list of documents, but cannot access information re the versions.</p>
  
  <p>The 2 classes are below</p>
  
  <pre><code>Public Class Document
    &lt;Key&gt;
    Public Property ID As Guid
    Public Property Name As String
    Public Property Description As String
    Public Property CreationDate As Date
    Public Property ReviewDate As Date
    Public Property NextReview As Date
    Public Overridable Property Versions As ICollection(Of DocumentVersion)
  End Class
  
  Public Class DocumentVersion
    &lt;Key&gt;
    Public Property VersionID As Guid
    &lt;ForeignKey("Document")&gt;
    Public Property DocumentID As Guid
    Public Property FilePath As String
    Public Property CreationDate As Date
    Public Overridable Property Document As Document
  End Class
  </code></pre>
  
  <p>In the asp:repeater I'm using <code>&lt;%#: Item.Name %&gt;</code> to display the document name, but cannot access <code>&lt;%#: Item.Versions.FilePath %&gt;</code> for example.</p>
  
  <p>If I do include item.versions.filepath I get the error:
  BC30456: 'FilePath' is not a member of 'ICollection(Of DocumentVersion)'.</p>
  
  <p>Any help would be very appreciated. </p>