I want to get @Return_Value
from stored procedure using entity.
Lets say stored procedure is:
CREATE PROCEDURE GetEmployes( @whereSql nvarchar(512) )
AS
BEGIN
set @tsql = 'select * from Employes where ' + @whereSql
exec(@tsql)
return 5
END
Entity imports is as
ObjectResult<Employe> GetEmployes(...)
This is what I need.
int return_value;
var result = db.GetEmpleys("name = .. AND ...", out return_value);
if (return_value == 5)
// do something on this exit code
List<Employe> result.ToList<Employe>() ;
I am using Visual Studio 2008
TIA