0
Select * from table
where Numero_Operacion in
(
Select Numero_Operacion from table
group by Numero_Operacion
having count(Numero_Operacion)>1
)
MERCI!comment écrire cette requête dans linq (C#)?
Select * from table
where Numero_Operacion in
(
Select Numero_Operacion from table
group by Numero_Operacion
having count(Numero_Operacion)>1
)
MERCI!comment écrire cette requête dans linq (C#)?
Ce serait quelque chose comme ça
<Table>.GroupBy(x => x.Numero_Operacion)
.Where(x => x.Count() > 1)
.SelectMany(x => x)
Merci pour votre réponse, et la même requête comment je peux écrire comme expression Lambda? – ratlab
L'expression Lambda est juste une fonction anonimous - http://msdn.microsoft.com/en-us/library/vstudio/bb397687.aspx c'est 'x => x.Count()> 1' dans mon code, par exemple –