Denpendancy-Inversion Principle - Repository Interface

Jul 13, 2008 at 3:05 PM
Hi Tim,

(Still loving the book) By having the Interface for the Repositories within the Domain Model assembley are you adhering to the Denpendancy-Inversion Principle? Sorry to have to label everything but I am reading Agile Principles, Patterns, and Practices in C# by Robert Martin as well and it seems to be what you are doing. Just wondering :0)

Cheers
Scott
Coordinator
Jul 16, 2008 at 7:04 AM
Thanks Scott!  Yes, that is exactly what I am doing...I like depending upon abstract types rather than concrete types.

--Tim

Scott_Millett wrote:
Hi Tim,

(Still loving the book) By having the Interface for the Repositories within the Domain Model assembley are you adhering to the Denpendancy-Inversion Principle? Sorry to have to label everything but I am reading Agile Principles, Patterns, and Practices in C# by Robert Martin as well and it seems to be what you are doing. Just wondering :0)

Cheers
Scott