Exemplo n.º 1
0
 public tb_Sys_MenuService(IDatabaseFactory dbfactory)
 {
     this.runtimeService        = new UnitOfWork(dbfactory);
     this.tb_Sys_MenuRepository = new tb_Sys_MenuRepository(dbfactory);
     this.rolesRepository       = new tb_Sys_RolesRepository(dbfactory);
     this.rolesRightRepository  = new tb_Sys_RolesRightRepository(dbfactory);
     this.rolesService          = new tb_Sys_RolesService(dbfactory);
 }
Exemplo n.º 2
0
 public tb_Sys_RolesService(IDatabaseFactory dbfactory)
 {
     this.runtimeService         = new UnitOfWork(dbfactory);
     this.tb_Sys_RolesRepository = new tb_Sys_RolesRepository(dbfactory);
     this.userRoleRepository     = new tb_Sys_UserRoleRepository(dbfactory);
 }