code_junkie

Linq to Entities, EntityReferences and DataGridViews

Nov 13th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. from customer in context.customers
  2. select new
  3. {
  4. Name = customer.Name,
  5. City = customer.Address.City
  6. }
  7.  
  8. <asp:Label ID="lblCity" runat="server" Text='<%# ((Customer)Container.DataItem).Address.City%>'></asp:Label>
Add Comment
Please, Sign In to add comment