That's exactly what I was looking for, thanks!
Another question, any nice solution for binding sub entities using a gridview with the following type of schema:
Employee
EmployeeID PK
ContactInfoID FK
ContactInfo
ContactInfoID PK
FirstName
LastName
ContactInfoTelephone (two field PK)
ContactInfoID
TelephoneID
Telephone
TelephoneID
ACode
ThreeDigit
FourDigit
Ideally the solution I would like to use is something simple like:
<cc1:LLBLGenProDataSource ID="llbl1" runat="server"
DataContainerType="EntityCollection" EntityCollectionTypeName="MyCode.CollectionClasses.EmployeeCollection, MyCode">
</cc1:LLBLGenProDataSource>
<asp:GridView ID="grid1" runat="server" datasourceID="llbl1">
<asp:TemplateField HeaderText="Telephone">
<ItemTemplate>
<asp:Repeater ID="repeaterTelephone" runat="server" DataSource='<%# Eval("Telephone") %>'>
<ItemTemplate>
<asp:Label ID="Phone" runat="server" Text='<% Eval("ACode") %>'></asp:Label>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:TemplateField>
</asp:GridView>