I have some stored procedures mapped in Entity Framework using Database First. It creates strongly typed methods that you can call to run the stored procedures. I’ve run into a significant problem, however, in that I don’t see any way to call these methods it created with the default parameters defined in the stored procedures. This means:
a) I have to manually add the default parameters to the method calls, which is brittle, if the default parameter value were to ever change.
b) Write method overloads by hand. This basically eliminates the benefit of generating a model from the database in the first place.
Does anyone know if there is a better solution to this problem?
Thanks.
As of Jan 2013, there’s no supported way to do have the Entity Framework do this.
I have opened a feature request here.