Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Linq and stored procedures
Message
From
09/06/2010 15:03:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/06/2010 14:57:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
C# 3.0
Database:
MS SQL Server
Miscellaneous
Thread ID:
01468056
Message ID:
01468151
Views:
48
>>>Hi all,
>>>
>>>In thinking about the use of Linq for retrieving data from SQL Server or in paticular via the Entity Framework, I have been wondering about the role of stored procedures. It has been my thinking for quite some time that using stored procedures was a best practice and often a requirement. Now with Linq, how is this practice affected?
>>>Thanks
>>>Tim
>>
>>SP's is a best practice or not is another debate. If you ask to SQL DBA it is. If you ask me, let me think about it:)
>>
>>You can however use SPs with Linq to SQL or EF. When it is EF, it is not as direct as with L2S but still you can. You may want to get a quick peek at this fresh article:
>>
>>http://msdn.microsoft.com/en-us/data/ff707264.aspx
>>
>>PS: L2S is easier. However MS is enhancing EF.
>>
>>Cetin
>
>Hi Cetin,
>
>I appreciate your input. Since I mostly use a framework, I have not used L2S as I was waiting for EF. Now I am trying to put together my entire thinking process for best practice in using EF, SQL, and Linq. It may take a bit to figure it all out. Microsoft seemed a bit fickled in this area but I like the idea of the EF so will probably focus on EF plus Linq. The only question is if I should be dropping the SP's.
>Thanks again
>Tim

Well for myself answer is simple. Who is the db designer? Me? If so I don't prefer using SPs. I find T-SQL not so simple.
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