J
James Page
Hi all I hope someone can help me out here:
I have a stored procedure which returns one row with two columns when it is
supplied with a userId parameter - this works fine and produces the results I
wished for.
However
I am writing a helper class that uses the stored procedure utilising LINQ -
Dim var1 = From db In myDb.mysproc(UserId) Select db.col1
Dim var2 = From db In myDb.mysproc(UserId) Select db.col2
Now what I need to do is use var1 & var2 elsewhere - but it appears that
when the code runs var1 & var2 hold the desired data output but returns as
'Nothing' when I try to access the two variables!
Any ideas?
VB.net /VS2008
I have a stored procedure which returns one row with two columns when it is
supplied with a userId parameter - this works fine and produces the results I
wished for.
However
I am writing a helper class that uses the stored procedure utilising LINQ -
Dim var1 = From db In myDb.mysproc(UserId) Select db.col1
Dim var2 = From db In myDb.mysproc(UserId) Select db.col2
Now what I need to do is use var1 & var2 elsewhere - but it appears that
when the code runs var1 & var2 hold the desired data output but returns as
'Nothing' when I try to access the two variables!
Any ideas?
VB.net /VS2008