Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Stored Procs - Design Question
Message
From
11/04/2009 20:07:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/04/2009 11:42:36
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01394176
Message ID:
01394384
Views:
37
>>This is the hard way when you have luxury to use Linq. For example in Linq To SQL the call to 1st one would be as simple as:
>>
>>NorthwindDataContext nw = new NorthwindDataContext();
>>var result = nw.CustOrderHist("BONAP");
>>
>>Thinking context might be a static app element it would even boil down to:
>>
>>var result = nw.CustOrderHist("BONAP");

>
>OK, Cetin ... I'm going to show my ignorance of LINQ here:
>
>Is CustOrderHist() a Stored Proc name that gets generated as a method in the NorthwindDataContext? If not, how does that method get there in the DataContext?
>
>UPDATE: nevermind ... this was already explained in a post to me from Viv, I just hadn't read it yet. It *is* a designer-generated method, based on the SQL Stored Procs. I'll ask any other questions I have about this in the thread to Viv.
>
>~~Bonnie

Yes it gets generated in Linq designer generated code. In entity framework it is a little different but yes again a method.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform