views:

27

answers:

2

Hello

I have a stored procedure which returns a couple of fields from a table that has many fields

I need to get this into a custom type in my model

I have added my entity and changed the function import to return objects of the new type but now I get a problem where the columns are not mapped

Can anyone help?

Cheers

Paul

A: 

This MSDN article is as detailed as it can get.

Perpetualcoder
ThanksI have got to the link below but I dont know what parts of the file it is talking about?My model only has 1 file, not several?http://msdn.microsoft.com/en-us/library/bb896279.aspxPaul
Rupert
do a show all files...edmx is comprised of those files..like aspx has markup.designer code and code behind
Perpetualcoder
Where is that option?
Rupert
A: 

Hi everyone

I have found the following link which has a tutorial on exactly what I want to do but I still cant get it to work

http://thedatafarm.com/blog/data-access/implement-select-stored-procedures-that-return-miscellaneous-data-in-ctp2-of-ef-designer/

Its prob because I am putting the code in the wrong places! Unfortunatly the author didnt put the final finished on the site and the formatting for the example code is not great

Could someone have a test of this please? If someone can get the tutorial working then its def something I am doing wrong

Paul

Rupert