LINQ in Action roller

How do I get a field withing a selected record using Linq2SQL

Hi all, I have the following expression var crResponded = from c in gdb.Tb_company_review where c.Id_company == m.Id_company orderby c.Updated_on descending select new {c.Company_name,c.Admin_comment,c.Description}; if (crResponded.Any()) { var latestRecord = crResponded.Take(1); } How do get to the field I declared c.Company_name, c.Admin_comment that I obtained ? If I do a foreach loop with only one field defined (not 3), I can get to one of the fields. However, how do I get to all 3 I am looking Read More...
Published Saturday, June 21, 2008 6:58 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication