开发者

Calling stored procedure from Entity Framework - ASP.NET MVC 2

In my ASP.NET MVC 2 project I'm trying to call a stored procedure from EF, the problem is after I followed the directions here (went this route because there's nothing in the model that maps to this stored procedure so I added 2 entities for the 2 stored procedures) I get this error:

GCTModel.msl(3,4) : error 3027: No mapping specified for the following EntitySet/AssociationSet - GalleryAnimalLists, GalleryImages.

Now, since I had to add manual entities to map these SP's to how do I get rid of this error message? An开发者_JAVA百科d ideas on what I'm doing wrong here, or is this post on his blog just wrong for MVC 2?


I ended up deleting the hand rolled entities I created for the function imports and created 2 complex types and mapped the function imports to those and it works perfectly. Just thought I'd share the solution I came up with in case someone came along with a similar issue

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜