如何在liqu中编写该代码 [英] how to write that code in liqu
本文介绍了如何在liqu中编写该代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
选择 distinct (a.question),an.answer
来自问题 a inner 加入回答 一个
a.que_ID = an.que_ID
解决方案
检查以下链接:
可见。隐藏方法 [ ^ ]
101 LINQ样本 [ ^ ]
[a href =http://www.codeproject.com/Articles/535374/DistinctBy-in-Linq-Find-Distinct-object-by-Properttarget =_ blanktitle =New Window> ^ ]
LINQ Distinct:IEqualityComparer和Func扩展方法实现 [ ^ ]
LINQ Farm:使用独特和避免Lambda [ ^ ]
并根据需要更改代码;)
使用 LINQPad [ ^ ]
select distinct (a.question) , an.answer
from Questions as a inner join answers as an
on a.que_ID = an.que_ID
解决方案
Check these links:
Enumerable.Distinct Method [^]
101 LINQ Samples[^]
DistinctBy in Linq (Find Distinct object by Property)[^]
LINQ Distinct: IEqualityComparer and Func extension method Implementations[^]
LINQ Farm: Using Distinct and Avoiding Lambdas[^]
and change the code to your needs ;)
Use tools like LINQPad[^]
这篇关于如何在liqu中编写该代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文