concept foreign key in category .net

This is an excerpt from Manning's book Entity Framework 4 in Action.
You’ve already seen a one-to-many relationship when we linked details to an order. In a database, the table that represent the “many” side of the relationship contains the primary key of the master table. For example, the OrderDetail table contains an OrderId column that links the detail to its order. In database jargon, this column is called a foreign key.
Listing 5.15. Defining a database foreign key in the storage schema
<EntityContainer ...> <AssociationSet Name="FK_OrderDetail_Order" Association=" OrderITModel.Store.FK_OrderDetail_Order"> <End Role="Order" EntitySet="Order" /> <End Role="OrderDetail" EntitySet="OrderDetail" /> </AssociationSet> </EntityContainer> <Association Name="FK_OrderDetail_Order"> <End Role="Order" Type="OrderITModel.Store.Order" Multiplicity="1"> <OnDelete Action="Cascade" /> </End> <End Role="OrderDetail" Type="OrderITModel.Store.OrderDetail" Multiplicity="*"/> <ReferentialConstraint> <Principal Role="Order"> <PropertyRef Name="OrderId" /> </Principal> <Dependent Role="OrderDetail"> <PropertyRef Name="OrderId" /> </Dependent> </ReferentialConstraint> </Association>
Persisting a new order isn’t difficult thanks to foreign keys. They don’t require you to load the associated customer and products. You only work with the Order and Order-Detail entities.
Foreign keys are simple to use, but they’re not the only way to maintain relationships between entities. During model design, you may decide not to use foreign keys and to rely on independent associations instead. Or perhaps you’re upgrading an application to Entity Framework 4.0 from Entity Framework 1.0, which has no concept of foreign keys.