I believe this is a clear yes/no question I am asking, and regardless of implementation either it breaks the law or it does not. So my question is, do navigation properties created in the Entity Framework Model break The Law Of Demeter? I think they do because one entity could have far too much knowledge and access to its navigation property instances like below:
Orders.Products.Price
In the code above Orders
in the main entity that contains a navigational property Products
. Often we have to drill down through that navigation property to access details on that related object. I assume having instance properties in general also do not break the law correct?
Assistance on clearing this up will be helpful, thanks!