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
Post a Comment