Learning Resources
Generating the DataContext
The DataContext are classes that let ASP.NET code see database tables and fields as objects. A Visual Web Designer designer maps objects to database tables. The DataContext is generated by
- To the project’s App_Data folder add the database in Solution Explorer .
- Add a LINQ to SQL Classes file to the project.
- In Database/Server Explorer locate the table node.
- Drag the table node and drop it on the left-hand pane of the Object Relational Designer.