Click here to Skip to main content
15,886,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have storead procedure like
SQL
ALTER PROCEDURE [dbo].[addtorecent]
	(
@id int,
@image_url varchar(50)
	)	
AS
insert into recentproducts values (@id,@image_url)
	/* SET NOCOUNT ON */
	RETURN

and i am callig using linq to sql class
db.addtorecent(1, "myimagepath");
this gives error
C#
Could not translate expression 'value(DataClassesDataContext).addtorecent(1, "myimagepath")' into SQL and could not treat it as a local expression.

thanks
Posted
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900