I am new to asp.net and I am trying to learn Linq to SQL. So I have found two different ways to pull from the database. The normal linq to SQL way and the direct SQL statement way.
I have both working, but I want to know which way is the accepted standard? I want to use straight SQL statements, because that is what I am use to, but I am trying to go with whatever is best practice.
Thanks
Take a look at the selected answer to this popular question.
Entity Framework became the preferred way to interact with a SQL database in ~2008.
Much of the heavy lifting in database calls and transactions is greatly simplified in EF.
If you continue to use Linq to SQL and want to learn from the master, have a look at Scott Guthrie’s Post.