I'm not using Linq to SQL Classes, i'm using a ADO.NEt Entity Data Model
Main Topics
Browse All TopicsI want to use the entity framework to call a stored procedure. I created a function import using the designer in visual studio. VmwEwonInterfaceEntities is the name of my model and SpCalaculateValues is the name of my sp, so i want to execute this code:
using (VmwEwonInterfaceEntities entities = new VmwEwonInterfaceEntities()
{
entities.SpCalculateValues
}
The problem is that the stored procedure is not available on the model. Did i forgot something?
Urgent please, thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi erwin_des;
I have not used this model but will look into this.
It seems that there are some extra stuff to deal with with Entity Data Model in adding a stored procedure. Below is an article showing how to implement a stored procedure with EDM. Look at the section marked "Stored Procedures in the Entity Model"
Stored Procedures in the Entity Model
http://msdn.microsoft
I hope that this helps.
Fernando
Hi erwin_des;
Here is some more information on stored procedures in the Entity Framework.
Stored Procedure Support (Entity Framework)
http://msdn.micr
Fer
Here is a video that uses ado.net entity and stored procedures:
http://www.asp.net/learn/3
Execute T-SQL Statements and stored using Entity framework 4
http://ledomoon.blogspot.c
Business Accounts
Answer for Membership
by: FernandoSotoPosted on 2008-10-14 at 06:46:53ID: 22711223
Hi erwin_des;
When you added the class "Linq to SQL Classes" from the Add Item in the Solution Explorer and added the entity class did you drag the stored procedure from Server Explorer to the right panel of the entity designer?
Fernando