Skip to main content

Microsoft Silverlight

Problem with Create function import ADO.NET entity frameworkRSS Feed

(0)

puneetpriyadarshi
puneetpr...

Member

Member

28 points

17 Posts

Problem with Create function import ADO.NET entity framework

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. Sad

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

Re: Problem with Create function import ADO.NET entity framework

 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.

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

puneetpriyadarshi
puneetpr...

Member

Member

28 points

17 Posts

Re: Problem with Create function import ADO.NET entity framework

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities