>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