LINQ join to create anonymous type


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var q = from c in customers
  2. join o in orders on c.Key equals o.Key
  3. select new {c.Name, o.OrderNumber};

Report this snippet


Comments


You need to login to view comments.