Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data access planning stage
Message
From
09/04/2009 07:46:12
 
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01388812
Message ID:
01393922
Views:
63
>>>>The major downside I see with Linq-to-Sql is not being able to use Stored Procedures (assuming I'm correct in this assumption).
>>>
>>>Not correct :-} You can just drop stored procedures on the design surface and it will generate the relevant ExecuteMethodCall()'s

>>
>Hi,
>
>>OK, I didn't really know (guess I should shut up then <g>) ...
>
>Lots of times I've said 'I don't use such-and-such' because it can't do so-and-so' only to be told that it can. And if I'd never made the statement in the first place I might neve have found out. :-}
>
>>could you explain how that fits into LINQ's SELECT syntax?
>
>The designer basically creates a method (with default name the same as the SPROC name) on the DataContext with the method taking that same parameters that are required by the SPROC. So you don't use a select to retreive. More like:
>List<things> = DataContext.ProcedureName(param1, param2);
This link describes better and in more detail:http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored-procedures.aspx
>
>Best,
>Viv

Very cool. Thanks for sharing that Viv. I'm still playing with Linq-to-sql because we haven't needed it for much so far, so it's mostly just research to learn and I missed that capability completely so far.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform