Can you add a stored procedure into an Entity Framework model (Model.edmx
)?
I just did it in Visual Studio 2010, like this (except my stored procedure is now off the Add tab and is in the Refresh tab)
My stored procedure is a simple SELECT
statement, taking 1 parameter.
VS2010 seems to have added it into the Model, but I wonder where it is and how I can use it?
I can't see it anywhere in the diagram nor in Model.designer.cs
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…