Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Function import when sp is changed

I am using the function import feature of the entity framework to call a stored procedure from .net 4.0 code.

However, everytime I change the stored proc result set, I have to delete the function import and add it again.

Is there any way, in which I can incorporate the change by changing the code in the entity model, rather than having to delete and add the function import again?

Thanks :)

like image 809
SO User Avatar asked Jun 17 '11 04:06

SO User


1 Answers

When using function import some changes are reflected automatically. For example if you add parameter to stored procedure and run Update from database it will automatically update both storage model definition and function import. If you modify result set which is not mapped to entity but to complex type instead you have to manually trigger function import updata - open function import and push Update button next to the complex type combo box.

like image 196
Ladislav Mrnka Avatar answered Oct 31 '22 13:10

Ladislav Mrnka