コード例 #1
0
 public DeveloperFacade()
 {
     this.devRep  = StructureMapContainer.GetContainer().GetInstance <IDeveloperRepository>();
     this.taskRep = StructureMapContainer.GetContainer().GetInstance <ITaskRepository>();
 }
コード例 #2
0
 public ClientFacade()
 {
     this.clientRepo   = StructureMapContainer.GetContainer().GetInstance <IClientRepository>();
     this.customerRepo = StructureMapContainer.GetContainer().GetInstance <ICustomerRepository>();
     this.projectRepo  = StructureMapContainer.GetContainer().GetInstance <IProjectRepository>();
 }
コード例 #3
0
 public CustomerFacade(int clientId) : base(clientId)
 {
     customerRepository = StructureMapContainer.GetContainer().GetInstance <ICustomerRepository>();
     projectRepository  = StructureMapContainer.GetContainer().GetInstance <IProjectRepository>();
     taskRepository     = StructureMapContainer.GetContainer().GetInstance <ITaskRepository>();
 }