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

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -