When you press the "save"
button within the LINQ to SQL designer surface, Visual Studio will persist out
.NET classes that represent the entities and database relationships that we
modeled. For each LINQ to SQL designer file added to our solution, a
custom DataContext class will also be generated. This DataContext class
is the main conduit by which we'll query entities from the database as well as
apply changes. The DataContext class created will have properties that
represent each Table we modeled within the database, as well as methods for
each Stored Procedure we added.
For example, below is the NorthwindDataContext
class that is persisted based on the model we designed above: