I have a collection of record ids(x,y,z,..) which is pass to a stored procedure as a string value. My stored procedure is:
CREATE PROCEDURE [dbo].[Sp_Getvalue](@recordId varchar(30)) 
AS
BEGIN    
    SET NOCOUNT ON;
    -- Insert statements for procedure here
    select  
    x.record_Id,
    x.name,
    x.address from dbo.tblvalue x where x.record_Id in (@recordId)
END
in code behind
var obj = context.Sp_Getvalue(value);
I am getting error as
An exception of type 'System.Data.EntityCommandExecutionException' occurred in System.Data.Entity.dll but was not handled in user code
 
     
     
    