Methods of pulling data from a database

Posted by kingrichard2005 on Stack Overflow See other posts from Stack Overflow or by kingrichard2005
Published on 2010-12-21T18:33:37Z Indexed on 2010/12/21 18:54 UTC
Read the original article Hit count: 243

I'm getting ready to start a C# web application project and just wanted some opinions regarding pulling data from a database. As far as I can tell, I can either use C# code to access the database from the code behind (i.e. LINQ) of my web app or I can call a stored procedure that will collect all the data and then read it with a few lines of code in my code behind. I'm curious to know which of these two approaches, or any other approach, would be the most efficient, elegant, future proof and easiest to test.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET