Domanda

Can you help me to convert SQL to LINQ:

select empno, dd, Min(sdate) sdate from TransactionPoolView
where sdate >= '" & DateValue(sdate) & "' and sdate < '" & DateValue(edate + 1) 
group by empno, dd 
È stato utile?

Soluzione 2

I find solution http://msdn.microsoft.com/en-us/vstudio/bb737926#grpbymin there is really nice example

Altri suggerimenti

There are some SQL to LINQ Converters,You can use

Linqer http://www.sqltolinq.com

LINQPad http://www.linqpad.net/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top