How to do a SELECT DISTINCT equivalent for a page filter in NHibernate?
问题 Lets say you are working in SQL 2005 with a copy of Northwind database installed. Your working on an ASP.NET application with an Employees "browse" page. At the top of the page you have a "Title" filter where you would like to display these 5 choices in a dropdown: [ALL] Vice President, Sales Sales Representative Sales Manager Inside Sales Coordinator In T-SQL you would use something like the statement below to get your list. SELECT DISTINCT Title FROM Employees ORDER BY Title What is the