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 :)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With