How to change sql query to LINQ -



How to change sql query to LINQ -

how alter next sql query linq

select top(5) * tradingdays trading_date <'2014-10-16 00:00:00.000' , holiday !=1 order id desc

datetime yourdate = new datetime(2014,10,16,0,0,0,0); var list = (from t in datacontext.tradingdays t.trading_date < yourdate && t.holiday != 1 orderby t.id desc select t).take(5);

sql linq

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -