b.Foreign Key Mapping

  1. Motivation

    1. Maps an association between objects to a foreign key reference between tables.

  2. Summary

      1. A Foreign Key Mapping maps an object reference to a foreign key in the database.

      2. Parent object stores the list of child object collection mainly implemented ad lazy load.

    1. Most of the ORM Framework like EF provides out of the box implementation as navigational properties and usually you should avoid custom implementation.

  1. When to Use

      1. A Foreign Key Mapping can be used for almost all associations between classes.