Manually added stored procedures in edmx file

后端 未结 2 1565
予麋鹿
予麋鹿 2021-01-13 02:57

Is it possible to persistently add the manually added stored procedures in the edmx file? The database is generated from model. Every time I change something within the edit

2条回答
  •  广开言路
    2021-01-13 03:27

    Moo, you should not modify the edmx file by hand.

    "Changes to this file may cause incorrect behavior and will be lost if the code is regenerated."

    That´s why you´re losing your work. You should map the already created stored procedure from the designer, the same way you made with your tables.

    I´m assuming you´re playing with EF4.

提交回复
热议问题