예제 #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);
 }
예제 #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);
 }