I been reading Repository Pattern implementation for MVC 2. I am confused due to few things.
Simple Implementation is below.
Tables : Contact has One to Many relation with AssignToCategories
1 - Contacts
2 - AssignToCategories
I have in Model folder
1 - We can use ContactRepository directly in View. Why we need IContactRepository for. As long as I know its for Test. Am I right?. If not than whats the purpose.
2 - I have seen ContactService, IContactService. As for as I know its for Business logic. Is there more to it?
3 - Contact has relation to AssignToCategories. Should I put all the data reterival logic within ContactRepository or this AssignToCategories need to have separate Repository and Interface.
I need some help with the concept. Though I have done alot of reading but still confused.
There is one layer called Pipe and filter. Whats the used of that?
View Complete Post