import stored procedure into VS project in EF

1. create stored procedure by using sql script, and then execute to create stored procedure

2. in VS project, EF, in emdx file, we update the database, select the stored procedure

3. check it in the model browser(in edmx file, and select other window, then select model browser.

4. there should be a function in "function import" tag.

5. if no function in "function import", right click the stored procedure and then add function import. 

posted @ 2015-01-04 02:19  ruri  阅读(79)  评论(0)    收藏  举报