I want to design a software architecture. I select the MVP pattern.
I have a DAO service and it will send the datas to the View by Present.
I used the Enterprise Library Policy Injection instances of View and DAO
to the Present. So If the Present have to interactive with multiple DAO services.
I want to know what should I do to design my DAO service?
Here is My Sample:
public class ProductDAO:IProductDAO
// All business with products.
public class HomePresent:PagePresent<IHomeView,IProductDAO>
///What should I do if the Present has to interactive non-single DAO service.
public HomePresent(IHomeView view,IProductDAO dao)
//business with view.
I hope everyone could give me some advices. I will be very appreciate.
I'm afraid I would think your inquiry is more of about MVP pattern than entlib. With this, what I can suggest is posting this to other forum sites that discusses MVP wherein you may get the responses you may
need from there. HTH.
Global Technologies and Solutions