Hi..
I'm assuming you're using visual studio...
1.You create a database in your web site project and add tables.
2. You create a LINQ to SQL object in your project. That has a .dbml extension.
3. You open the .dbml file from within the server/solution explorer.
4. You drag and drop all the tables into the .dbml file area that opens up in step 3, and save it.
5. Whatever name you give to the .dbml file, same name followed by DataContext gives you the name of database context, which you'll use to access the database in the following way:
DatabaseDBDataContext dc = new DatabaseDBDataContext();
UserData ud = dc.UserDatas.Where(x => x.EmpId.ToLower() == txtViewEmp.Text.ToLower()).SingleOrDefault();
EmployeeData emp = dc.EmployeeDatas.Where(x => x.EmpId.ToLower() == txtViewEmp.Text.ToLower()).SingleOrDefault();
Here UserData and EmployeeData are table names & Database DB is name of .dbml or linq file
Hope it helps or at least gives you a direction...