using stored procedure in entity framework
问题 I am using asp.net mvc 5 and C# with Entity Framework... I have model and domain classes for function... now I need to use stored procedure.... which I am struggling at the movement. I am following code first existing database and I have stored procedure written there. My question is how I can call that stored procedure in my web application. Stored procedure: ALTER PROCEDURE [dbo].[GetFunctionByID]( @FunctionId INT ) AS BEGIN SELECT * FROM Functions As Fun WHERE Function_ID = @FunctionId END