1
如何將此查詢表達式語法轉換爲方法語法?請幫助,如何將此查詢表達式語法轉換爲方法語法?
var designers = (from d in _dbRead.Designer
join vd in _dbRead.VariationDesigner on d.DesignerId equals vd.DesignerId
join pv in _dbRead.ProductVariation on vd.VariationId equals pv.VariationId
where (pv.IsActive ?? false) && (d.SortName ?? "") != ""
orderby d.SortName
select d).Distinct();
http://community.bartdesmet.net/blogs/bart/archive/2008/08/30/c-3-0-query-expression-translation-cheat -sheet.aspx – ullmark 2011-02-11 12:09:39