I\'m using EF 4 with model-first...I generate the database from the model. How would I be able to use stored-procedures in that scenario? They should also be auto-generated
Ladislav is right except that I have found a probable workaround. I have tested this and it works although cannot tell if there are side effects to it.
Now, your model and the database are synced. The trick is that in the future whenever you want to update either the database or the model first, just repeast steps 2, 3 and 4.
You now have the best of both worlds! One word though is I would make sure you have the latest version of the power pack (you have to uninstall the old version from windows control panel then redownload the latest version and install it. If you do not update and you have VS2010 SP1 then the power pack will not display the necessary dialog box when you choose Generate Database and you would lose your stored procedures more than likely.
Hope you like this. 3.