Generic Repository-based interface
Hi there, I have a question:
Why is the generic Repository-based interface in the MVC Application project and why not in Data Layer project?
Yassin Khan, Nov 21, 2010
If you are talking about the Patterns In Action 4.0 MVC application, then it's there to provide a base implementation to the UI repositories. The DoFactory guys can correct me if I'm wrong about this, but what this does in this particular pattern is provide a layer of abstraction in the UI for, what I see as three immediate reasons:
I hope that answers your question.
King Wilder, Jan 07, 2011
I am not sure which context you are referring to, but as a general practice the "Generic Repository" interface should not be in the MVC application project. It should be in a separate class library for ease of reuse and from maintenance point of view.
Rajesh Pillai, Jan 06, 2011