Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Problem with Create function import ADO.NET entity framework
2 replies. Latest Post by puneetpriyadarshi on June 17, 2009.
(0)
puneetpr...
Member
28 points
17 Posts
06-11-2009 9:02 AM |
1. Did an "Update model from database" and selected the stored procedure I need
2. In the Model Browser right clicked on the SP on the namespace.Store and selected "Create function import"
3. Checked that the function was created in Model.edmx but there is no function in the code behind file i.e Model.Designer.cs
Not able to locate the problem.
Amanda W...
All-Star
17241 points
1,466 Posts
06-17-2009 3:30 AM |
Hi,
puneetpriyadarshi:2. In the Model Browser right clicked on the SP on the namespace.Store and selected "Create function import"
Did you add a entity when you right clicked on the SP to create function import?
We have a test on our labs, if the file Model1.edmx does not have any entity and you want to add function import, there will be no function generated in the code behind file.
BUT if you add some entities to Model1.edmx and you add function import, you will notice the function can be generated in the code behind file.
06-17-2009 9:26 AM |
ya amanda.. there are nearly 50 of entities added in the model.edmx and also have code generated in Model.Designer.cs This is really urgent as our release date is coming closer. Can you look into it. Thanks in advance I really appreciate that you replied to this post. puneet