entity framework - How to use stored procedure in Linq-to-Entities -


i working entity framework

i want know how can use stored procedures in linq-to-entities. stored procedure called selectemployee , table name employee

for added code this

 databaseentity entities = new databaseentity();  var selectdata = entities.executestorequery<employee>("selectemployee").tolist(); 

but not supported executestorequery

so please guide me how can use stored procedures in linq-to-entities

in simple steps:

  1. add stored procedure edmx.

  2. you find sp in model browser

  3. right click on stored procedure , add function import

  4. use entities.selectemployee()


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -