2
私はLINQの中で同じクエリを変換したときに、私は右の結果を取得しています なぜ私のLinquedクエリが私に適切な結果を与えていないのですか?
select Distinct(EmpNTLogin),Employee from Attendance
where CreateDate>='2016-01-01'
order by EmpNTLogin
句
順を使用して、すなわちZへの並べ替え従業員のすべての名前私に適切な結果を与える。このSQLクエリを持っていますが、 order by節は機能しません。ここ は、あなたが最初の「どこ」節を適用し、「orderbyの」節を適用する必要が私のLinquedクエリvar query = (from attendance in db.Attendances
orderby attendance.EmpNTLogin
where attendance.CreateDate.Value.Year >= 2016
select new { attendance.Employee, attendance.EmpNTLogin }).Distinct();
ないの呼び出し後にORDERBYを適用します:( – akash