Saturday, August 6, 2011

Law of Demeter

If Address has a many to many relationship with Driver and Driver has a many to many relationship with Automobile and Automobile has a many to many relationship with TollroadTag... the following is a Law of Demeter violation and moreover it can't really work: var foo = myTollroadTag.Automobile.Driver.Address.Zip;

No comments:

Post a Comment