Access OutPut Parameters of Stored Procedure using SubSonic.

 

You can acess OuPut perametes of SP in SubSonic using StoredProcedure.OutputValues;

Folowing is the chunk of code to access OutPut parameters of SP, here i have sued SP “UspTestOutPut”.

StoredProcedure s = SPs.UspTestOutPut(“10″, “15″);
s.Execute();
s.OutputValues.ForEach(delegate(object objOutput)
{
      Response.Write(“OutPutValues=”+objOutput.ToString());
});

About these ads

Comments are closed.