Mukesh Kumar Tiwari

Mukesh Kumar Tiwari

  • NA
  • 980
  • 243.4k

How To Generate Record Row Number In Linq to Sql.

Jun 2 2014 7:06 AM
Hey frnds 
 
i want to generate a Sr. No. in grid of all The Records using  linq to sql query..
i have done this thing in Sql Query but i want to do it with linq..
 
select
ROW_NUMBER() Over (Order by SID) As [S.N.], [ProductBrand],[ProductModel]
[Type]
from stock where stockStatus='YES'
please make the linq query of above query.. 

Answers (1)