entity framework - How to correctly remove a Stored Procedure from DataEntities.edmx? -
if define stored procedure mystoredprocedure using visual studio server explorer in "stored procedures" folder, go .edmx update model.
i can use mystoredprocedure in code behind, , can detected intellisense, , works fine.
when remove mystoredprocedure database , .edmx model. still detected intellisense. if has no trace neither in server explorer -> "stored prodecures" folder nor in .emdx "stored procedured / functions" folder.
when used no compile error shown, runtime error (of course expected).
the function import 'dataentities.mystoredprocedure' cannot executed because not mapped store function.
if re-define mystoredprocedure again in database -> server explorer -> "stored prodecures", , update .edmx model. intellisense detects two:
mystoredprocedure-> old one, , causes runtime error.mystoredprocedure1-> new one, , works fine.
so how correctly remove stored prodecure dataentities.edmx?
Comments
Post a Comment