The following illustration shows the relationship between the developer and the data in a two-tier scenario. For other scenarios, see N-Tier and Remote Applications with LINQ to SQL.
.png)
Now that you have the object model, you describe information requests and manipulate data within that model. You think in terms of the objects and properties in your object model and not in terms of the rows and columns of the database. You do not deal directly with the database.
When you instruct LINQ to SQL to either execute a query that you have described or call SubmitChanges() on data that you have manipulated, LINQ to SQL communicates with the database in the language of the database.
The following represents typical steps for using the object model that you have created.
1. Create queries to retrieve information from the database.
2. Override default behaviors for Insert, Update, and Delete.
3. Set appropriate options to detect and report concurrency conflicts.
4. Establish an inheritance hierarchy.
5. Provide an appropriate user interface.
6. Debug and test your application.