سؤال

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 
هل كانت مفيدة؟

المحلول 2

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

نصائح أخرى

There are some SQL to LINQ Converters,You can use

Linqer http://www.sqltolinq.com

LINQPad http://www.linqpad.net/

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top