18. Relationships in Object-Relational MappingΒΆ

  1. 18.1. Types of Relationships
    1. 18.1.1. One-to-One
    2. 18.1.2. One-to-Many and Many-to-One
    3. 18.1.3. Many-to-Many
    4. 18.1.4. Check Your Understanding
  2. 18.2. A Primer on Lambda Expressions
    1. 18.2.1. Select Example
    2. 18.2.2. Where Example
    3. 18.2.3. Check Your Understanding
  3. 18.3. Creating a One-to-Many Relationship
    1. 18.3.1. Setting Up the Relationship - Video
    2. 18.3.2. Setting Up the Relationship - Text
      1. 18.3.2.1. Replacing EventType With EventCategory
      2. 18.3.2.2. Defining the Inverse Relationship
    3. 18.3.3. Refactoring the Controller and View - Video
    4. 18.3.4. Refactoring the Controller and View - Text
    5. 18.3.5. Database Migration and Testing - Video
    6. 18.3.6. Database Migration and Testing - Text
    7. 18.3.7. Check Your Understanding
  4. 18.4. Some Setup
    1. 18.4.1. The Tag Model Class
    2. 18.4.2. The Detail View - Video
    3. 18.4.3. The Detail View - Text
  5. 18.5. Creating a Many-to-Many Relationship
    1. 18.5.1. Join Tables
    2. 18.5.2. The EventTag Model - Video
    3. 18.5.3. The EventTag Model - Text
    4. 18.5.4. Adding a Tag to an Event - Video
    5. 18.5.5. Adding a Tag to an Event - Text
      1. 18.5.5.1. ViewModels/AddEventTagViewModel
      2. 18.5.5.2. Views/Tag/AddEvent.cshtml
      3. 18.5.5.3. GET and POST Handlers
    6. 18.5.6. Displaying Tags in the Detail View - Video
    7. 18.5.7. Displaying Tags in the Detail View - Text
    8. 18.5.8. Preventing Errors When Adding a Tag - Video
    9. 18.5.9. Preventing Errors When Adding a Tag - Text
    10. 18.5.10. Display Items With a Given Tag - Video
    11. 18.5.11. Display Items With a Given Tag - Text
    12. 18.5.12. Check Your Understanding
  6. 18.6. Exercises: The Early Bird Gets the ORM.