I’m using LinqToSql as a quick way to access my database for some brownfield testing. I needed to execute a stored procedure that returned a result set, but after adding it to the LinqToSql design surface, I noticed that the return value was set to none, and I was unable to change it.
This stored procedure had two exec statements, and a Set Transaction Isolation level statement as well. After commenting these out and re-adding the stored procedure to the design surface, I was still faced with a return value of none. I ended up deleting the stored procedure, rebuilding, and then re-adding. This finally resulted in a auto generated return value. I then uncommented the lines I had previously commented out.
While researching this, I found some other people with a similar problem, and rebuilding helped a few people, but not all, so your mileage may vary.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.