I am programming a internal database web application in Visual Studio 2010 with C#/ASP.NET. I am fairly familiar with SQL and ADO.net, but I would like to try LINQ because I've heard it can make my job easier.
I have succeeded in connecting to my database using ADO.net. But I don't even know where to begin with LINQ. LINQ doesn't use "connection strings," does it?
I've added a connection to my database in Visual Studio's "Data Connections" and I can see all my databases and tables. And from my web searches it looks like I need to add some kind of reference to a "data context" to the database I want to access with LINQ, but how do I go about doing that? Do I need to add something to web.config? Or add a class to code behind...? I've read about DBML files, is this what I need to generate?