Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Stored Procs - Design Question
Message
From
11/04/2009 11:42:36
 
 
To
10/04/2009 22:23:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01394176
Message ID:
01394337
Views:
41
>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform