Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq cheat sheet

var query = from m in Manufacturers
	where m.Name == "Trek" 
	select new {Name = m.Name, Key = m.ManufacturerId};

var lambda = Manufacturers.Where(m => m.Name == "Trek").Select(m=> new {Name = m.Name, Key = m.ManufacturerId});
Source by brianvanderplaats.com #
 
PREVIOUS NEXT
Tagged: #linq #cheat #sheet
ADD COMMENT
Topic
Name
6+7 =