protected IDbSession dbSession; //当前类或者是子类 public BaseBll() { dbSession = DbSessionFactory.GetCurrentDbSession(); SetCurrentDal();//构造函数里面调用了 抽象方法:SetCurrentDal }
public override void SetCurrentRepository() { CurrentRepository = DbSessionFactory.GetCurrentDbSession().SysMenuRepository; }
public override void SetCurrentRepository() { CurrentRepository = DbSessionFactory.GetCurrentDbSession().FileUploaderRepository; }
public override void SetCurrentRepository() { CurrentRepository = DbSessionFactory.GetCurrentDbSession().SysDocumentSysPersonRepository; }
public override void SetCurrentRepository() { CurrentRepository = DbSessionFactory.GetCurrentDbSession().SysMenuSysRoleSysOperationRepository; }