You must Sign In to post a response.
Category: LINQ
#756244
Yes. It is found to be the good solution.
Eg:
Create stored proc -
CREATE PROCEDURE [dbo].[TestProc]
-- Add the parameters for the stored procedure here
@CustomerID int = null
AS
BEGIN
END
Execute that in EF -
using (var ctx = new CustomerEntities())
{
//Execute stored procedure as a function
var customerList = ctx.TestProc(1).ToList<Customers>();
}
Thanks & Regards,
Abhijith
Mail - abhijith.pn@gmail.com
Check My Blog - http://www.solvemytechissue.in/
Eg:
Create stored proc -
CREATE PROCEDURE [dbo].[TestProc]
-- Add the parameters for the stored procedure here
@CustomerID int = null
AS
BEGIN
END
Execute that in EF -
using (var ctx = new CustomerEntities())
{
//Execute stored procedure as a function
var customerList = ctx.TestProc(1).ToList<Customers>();
}
Thanks & Regards,
Abhijith
Mail - abhijith.pn@gmail.com
Check My Blog - http://www.solvemytechissue.in/
Return to Return to Discussion Forum