Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Stored Procs - Design Question
Message
De
11/04/2009 11:42:36
 
 
À
10/04/2009 22:23:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01394176
Message ID:
01394337
Vues:
42
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform