20. Relationships in Object-Relational MappingΒΆ

  1. 20.1. Types of Relationships
    1. 20.1.1. One-to-One
    2. 20.1.2. One-to-Many and Many-to-One
    3. 20.1.3. Many-to-Many
    4. 20.1.4. Check Your Understanding
  2. 20.2. A Primer on Lambda Expressions
    1. 20.2.1. Select Example
    2. 20.2.2. Where Example
    3. 20.2.3. Check Your Understanding
  3. 20.3. Creating a One-to-Many Relationship
    1. 20.3.1. Setting Up the Relationship - Video
    2. 20.3.2. Setting Up the Relationship - Text
      1. 20.3.2.1. Replacing EventType With EventCategory
      2. 20.3.2.2. Defining the Inverse Relationship
    3. 20.3.3. Refactoring the Controller and View - Video
    4. 20.3.4. Refactoring the Controller and View - Text
    5. 20.3.5. Database Migration and Testing - Video
    6. 20.3.6. Database Migration and Testing - Text
    7. 20.3.7. Check Your Understanding
  4. 20.4. Some Setup
    1. 20.4.1. The Tag Model Class
    2. 20.4.2. The Detail View - Video
    3. 20.4.3. The Detail View - Text
  5. 20.5. Creating a Many-to-Many Relationship
    1. 20.5.1. Join Tables
    2. 20.5.2. The EventTag Model - Video
    3. 20.5.3. The EventTag Model - Text
    4. 20.5.4. Adding a Tag to an Event - Video
    5. 20.5.5. Adding a Tag to an Event - Text
      1. 20.5.5.1. ViewModels/AddEventTagViewModel
      2. 20.5.5.2. Views/Tag/AddEvent.cshtml
      3. 20.5.5.3. GET and POST Handlers
    6. 20.5.6. Displaying Tags in the Detail View - Video
    7. 20.5.7. Displaying Tags in the Detail View - Text
    8. 20.5.8. Preventing Errors When Adding a Tag - Video
    9. 20.5.9. Preventing Errors When Adding a Tag - Text
    10. 20.5.10. Display Items With a Given Tag - Video
    11. 20.5.11. Display Items With a Given Tag - Text
    12. 20.5.12. Check Your Understanding
  6. 20.6. Exercises: The Early Bird Gets the ORM.