Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to Use stored procedure using entity framework without edm model


What I have tried:

How to Use stored procedure using entity framework without edm model
Posted
Updated 6-Jun-17 4:45am
Comments
Richard Deeming 6-Jun-17 8:52am    

1 solution

By the help of DContext class you can call the stored procedure.
var Param = new SqlParameter("@Param", ParamValue);
YourDBContextInstance.Database.SqlQuery<Enity>("SPName",Param );
Refer this link to know better.
c# - How to call Stored Procedure in Entity Framework 6 (Code-First)? - Stack Overflow[^]
 
Share this answer
 

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