Quantcast
Channel: Preparing data from Stored Procedure for display in a WebGrid (in webPages 3.0)
Viewing all articles
Browse latest Browse all 6

Re: Preparing data from Stored Procedure for display in a WebGrid (in webPages 3.0)

$
0
0

Your order by must either be inside the stored procedure or you use linq on the returned result

Example of Linq is:
var selSelect="EXEC [dbo].[sp_PivotMWR] @0, @1";
var results=db.Query(sqlSelect, 999,888);
var orderedResult=results.OrderByDescending(c=>c.AMSTxnId);


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>