The SoftWare Architecture MVP Pattern: How to design the DAO service to the Present

Topics: General discussion
Jun 27, 2011 at 3:00 AM

Hi All,

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)
        {
               InitView(view); InitDAO(dao);
        }
       
        //business with view.
}

I hope everyone could give me some advices. I will be very appreciate.
Thanks.

David

Jun 28, 2011 at 10:03 AM

Hello David,

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.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com