What are the Navigation Properties in Entity Framework

.net c# entity-framework

Question

I am new to Entity Framework. When the Visual Studio creates Model diagram we can see mainly two things in Entities.Propertie and Navigation Properties,So what are these Navigation Properties? How to use them?

1
8
7/16/2012 4:02:28 PM

Popular Answer

Navigation properties represents related entites to the principal entity. Foreign Keys are usually represented by navigation properties.

Ex : if you have two tables Invoice and invoice items and those tables have a relation 1-> many so you'll find a navigation property in invoice entity that lists all invoice items related to an invoice.
Hope it helps.

12
10/31/2012 1:06:25 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow