Tuesday 19 April 2011

These tutorials describe how to map your classes to your tables manually (rather than with an automated tool like SqlMetal) so that you can have support for M:M relationships and data binding against your entity classes. Even if you do choose to auto-generate your classes, understanding how these techniques work will allow you to expand the code to better fit your application's needs and to better troubleshoot issues when they arise.
The purpose of this second article is to continue introducing LINQ to SQL by showing how to:
  1. Add/Update/Delete data in your database through your classes using LINQ to SQL.
  2. Ensure that your M:M, 1:M, and M:1 relationships are kept in synch* as you perform these adds/updates/deletes.

No comments:

Post a Comment