LINQ in Action roller

OrderBy and Distinct

Hi NG, I'm using following statement: Code Snippet var query = ( from adr in prodDtcx.PersonAddress orderby adr.City select adr.City).Distinct(); Generated SQL Statement is the following: SQL Snippet SELECT DISTINCT [t0].[City] FROM [Person].[Address] AS [t0] I'm missing here the order by. What is wrong in my query? Thx for your help. Ozgur Aytekin Read More...
Published Saturday, June 9, 2007 3:39 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog