官术网_书友最值得收藏!

Relationships – Terminology and Conventions

In Chapter 2, The Other Way Around – Database First Approach, we re-engineered the existing database using Entity Framework's Database-First approach. Let's now start to understand the terminologies and conventions used in relationships.

Entities are of no use if we don't give them an identity. The relationship terms we will be exploring in this chapter will provide an identity for the entities, which not only describes them, but also helps us in creating relationships between different entities.

The topics we will cover in this chapter are:

  • Understanding relationship terms:
    • Data models
    • Principal entity
    • Principal key
    • Dependent entity
    • Foreign key
    • Navigation property
  • Conventions in a relationship:
    • Fully-defined relationships
    • No foreign key property
    • Single navigation property
    • Foreign key
    • Inverse property
主站蜘蛛池模板: 高雄市| 和静县| 潜山县| 威海市| 武汉市| 宁强县| 晋州市| 精河县| 江川县| 大悟县| 漳州市| 绥中县| 东光县| 隆安县| 历史| 玛曲县| 巫山县| 余干县| 长治市| 简阳市| 五华县| 西乌珠穆沁旗| 辽阳县| 巢湖市| 东兴市| 花莲市| 金门县| 济源市| 雷波县| 基隆市| 乐都县| 阿城市| 武穴市| 正阳县| 宁国市| 金乡县| 高州市| 梓潼县| 博白县| 公安县| 安义县|