Home
> Linq to sql > LINQ to SQL — Can’t modify return type of stored procedure
LINQ to SQL — Can’t modify return type of stored procedure
I’ve used store procedures in my data model several times without a problem until, I got this message. What I found out is that when you try to add a store procedure with a user defined data type you have this issue just change it to a non user defined data type and you would be able to specify a return type.
Better solution found here: http://tonesdotnetblog.wordpress.com/2010/06/02/solution-my-generated-linq-to-sql-stored-procedure-returns-an-int-when-it-should-return-a-table/