I’m trying to use LINQ to SQL Server in C#/.NET on Visual Studio 2010.
As first thing, I’ve create the Table “Details” into SQL Server; than I create a LINQ to SQL classes on the project, called DataClasses (.dbml).
Well, after setting the connection to the db, I’d like to extract the data from the Details table.
I do this on a WebForm Page_Load :
DataClassesDataContext data = new DataClassesDataContext();
but seems it is the wrong approch? How should I do?
SomePageAspx.cs
MyBook.cs
Just a rough sketch, but it should be enough for you to get the idea. If not, ask.