Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
QuestionRe: cross thread operations Pin
harold aptroot2-Jun-09 9:57
harold aptroot2-Jun-09 9:57 
AnswerRe: cross thread operations Pin
DaveyM692-Jun-09 9:57
professionalDaveyM692-Jun-09 9:57 
GeneralRe: cross thread operations Pin
spiritboy2-Jun-09 12:26
spiritboy2-Jun-09 12:26 
GeneralRe: cross thread operations Pin
Henry Minute2-Jun-09 12:42
Henry Minute2-Jun-09 12:42 
GeneralRe: cross thread operations Pin
S. Senthil Kumar2-Jun-09 19:09
S. Senthil Kumar2-Jun-09 19:09 
GeneralRe: cross thread operations Pin
spiritboy2-Jun-09 12:43
spiritboy2-Jun-09 12:43 
GeneralRe: cross thread operations Pin
harold aptroot2-Jun-09 12:46
harold aptroot2-Jun-09 12:46 
QuestionStored Procedure that returns data with Entity Data Model not working Pin
dfn2-Jun-09 6:10
dfn2-Jun-09 6:10 
Hi.
My solution (working in VS 2008) has a C# console app, and a C# web service. The service has an entity data model. It has numerous stored procedures. For one of the stored procs, which just returns data (SELECT blah blah FROM...), I added a function import called "Iservice." I saved all, then in my console app, updated the service reference to my C# service. Now, in my console app, I am trying to do the following:

myEnts db = new myEnts(new Uri("http://localhost:3811/isr.svc"));

foreach(st_service sr in db.Iservice(false))
Console.WriteLine("Number#: {0} " + sr.num);


This doesn't work. "Iservice" is the name of the function import I created and I can see it in the object browser, but when I look at the service reference, I can't see it in the object browser. The compiler doesn't like "db.Iservice(false)" and the message is that myEnts from the service reference does not containt a definition for "Iservice."

So when I am in the service project, and look at the object browser, I can see Iservice - however when I look at the service reference in the object browser, from the console project, I do not see Iservice. How come this happens? How can I fix this? I tried saving, closing, and reloading MSVS2008, I tried updating the service reference multiple times. I googled for examples of calling stored procs in the EDM, and tried different ways of calling it as shown here:

http://blogs.microsoft.co.il/blogs/gilf/archive/2009/03/13/mapping-stored-procedure-results-to-a-custom-entity-in-entity-framework.aspx[^]

http://blogs.msdn.com/bags/archive/2009/03/13/entity-framework-modeling-select-stored-procedures.aspx[^]

http://blogs.msdn.com/adonet/archive/2007/09/14/how-to-map-stored-procedures-using-the-ado-net-entity-framework.aspx[^]

I'd appreciate any help.


PS -- The stored proc that I created a function import for takes in a BIT as a parameter. When in my service project, and looking at the object browser, it shows Iservice as "Iservice(bool?)" which is strange to me. Why the question mark?
AnswerRe: Stored Procedure that returns data with Entity Data Model not working Pin
Henry Minute2-Jun-09 6:55
Henry Minute2-Jun-09 6:55 
GeneralRe: Stored Procedure that returns data with Entity Data Model not working Pin
Luc Pattyn2-Jun-09 7:12
sitebuilderLuc Pattyn2-Jun-09 7:12 
GeneralRe: Stored Procedure that returns data with Entity Data Model not working Pin
EliottA2-Jun-09 10:32
EliottA2-Jun-09 10:32 
AnswerRe: Stored Procedure that returns data with Entity Data Model not working Pin
Luc Pattyn2-Jun-09 6:55
sitebuilderLuc Pattyn2-Jun-09 6:55 
AnswerRe: Stored Procedure that returns data with Entity Data Model not working Pin
dfn3-Jun-09 6:04
dfn3-Jun-09 6:04 
QuestionFlowLayoutPanel docking, unusual behavior. Pin
EliottA2-Jun-09 5:43
EliottA2-Jun-09 5:43 
AnswerRe: FlowLayoutPanel docking, unusual behavior. Pin
Henry Minute2-Jun-09 5:59
Henry Minute2-Jun-09 5:59 
GeneralRe: FlowLayoutPanel docking, unusual behavior. Pin
EliottA2-Jun-09 7:06
EliottA2-Jun-09 7:06 
QuestionC# Media Player Pin
sagiklan2-Jun-09 5:30
sagiklan2-Jun-09 5:30 
AnswerRe: C# Media Player Pin
0x3c02-Jun-09 5:32
0x3c02-Jun-09 5:32 
AnswerRe: C# Media Player Pin
EliottA2-Jun-09 5:45
EliottA2-Jun-09 5:45 
GeneralRe: C# Media Player Pin
Manas Bhardwaj2-Jun-09 5:56
professionalManas Bhardwaj2-Jun-09 5:56 
AnswerRe: C# Media Player PinPopular
MumbleB2-Jun-09 6:58
MumbleB2-Jun-09 6:58 
AnswerRe: C# Media Player Pin
Christian Graus2-Jun-09 10:47
protectorChristian Graus2-Jun-09 10:47 
GeneralRe: C# Media Player Pin
Dan Neely2-Jun-09 10:54
Dan Neely2-Jun-09 10:54 
GeneralRe: C# Media Player Pin
Christian Graus2-Jun-09 11:18
protectorChristian Graus2-Jun-09 11:18 
GeneralHelp on Dialog Pin
dell2242-Jun-09 5:04
dell2242-Jun-09 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.