c# - Index was outside the bounds of the array (System.Byte to tinyint) -


i'm stuck have sp (dbo.getbalance) returns multiple recordsets. 2 recoredsets

and 1 of sp's parameters tinyint ( lang_type ), know in c# system.byte, when i'm trying pass parameter error: "index outside bounds of array"

here code

public class balance : dataclasses1datacontext     {         [function(name = "dbo.getbalance")]         [resulttype(typeof(balanceuserlist))]         [resulttype(typeof(userbalanceaccount))]         public imultipleresults getuserbalance(int iclient_no, int session_id, datetime? bal_date)         {             system.byte lang_type = 0;// helper.getlanguage();             iexecuteresult result = this.executemethodcall(this,                 ((methodinfo)(methodinfo.getcurrentmethod())),                 iclient_no, session_id, bal_date, lang_type );             return (imultipleresults)(result.returnvalue);         }      } 

and sp's parameters

@iclient_no         int, @session_id         int, @bal_date           smalldatetime , @lang_type          tinyint = null 

what i'm doing wrong?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -