2

I'm using VS2010, .NET 4.0, and Entity Framework 4 on a new project. I've been building out the data model iteratively and just started adding some stored procedures. Every time I "Update Model From Database," the stored procedure mappings disappear from my project and it breaks at runtime. I assume I'm missing something fairly simple. Has anyone seen this happen? Do I have something checked or unchecked that's torching my proc mappings with each update?

Thanks!

Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365
dudemonkey
  • 1,091
  • 5
  • 15
  • 26
  • Are your stored procedures using temporary tables? If so, see here: http://stackoverflow.com/questions/7128747/ef4-the-selected-stored-procedure-returns-no-columns – brian Nov 22 '11 at 22:09
  • unfortunately, no. They're actually just doing SELECTS, but the logic was complicated enough that i wanted to capture it in the database itself and not in the Entity Framework code – dudemonkey Nov 22 '11 at 23:35

2 Answers2

0

Are your project have setup the permission to see the stored procedures and function import mapping.

There is existing thread which might help you vs-2010-edmx-stored-procedure-missing

Community
  • 1
  • 1
Turbot
  • 5,095
  • 1
  • 22
  • 30
0

Remove the procedure from your Data Model and again add it from DataBase.

Kishor
  • 201
  • 2
  • 12