Relationship in Entity Framework Using Code First Approach With Fluent API 文档

A relationship, in the context of databases, is a situation that exists between tworelational database tables when one table has a foreign key that references the primarykey of the other table. Relationships allow relational databases to split and store data invarious tables, while linking disparate data items. For example, if we want to storeinformation about a Customer and his Order, then we need to create two tables, onefor the Customer and another for the Order. Both tables, Customer and Order, willhave the relationship one-to-many so whenever we retrieve all orders of a customer,then we can easily retrieve them.

madaming 2016-06-13   0   0
Fluent   API   framework