Пример #1
0
 private ArticleService()
 {
     /*
      * _daoManager = ServiceConfig.GetInstance().DaoManager;
      * _articleDao = _daoManager.GetDao(typeof(IArticleDao)) as IArticleDao;
      */
     _articleDao = new ArticleSqlMapDao();
 }
Пример #2
0
 public ArticleBusiness(IBaseDataManager <Article> baseDataManager, IArticleDao articleDao)
     : base(baseDataManager)
 {
     _baseDataManager = baseDataManager;
     _articleDao      = articleDao;
 }
Пример #3
0
 public index()
 {
     this.articleDao = new ArticleDao();
 }
 public ItemsCountHandler()
 {
     this.articleDao = new ArticleDao();
     logger.Info("Constructor method done.");
 }
Пример #5
0
 public ArticleService(IArticleDao articleDao)
 {
     _articleDao = articleDao;
 }
Пример #6
0
 public ArticleDeleteHandler()
 {
     this.articleDao = new ArticleDao();
     logger.Info("Constructor method done.");
 }
Пример #7
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public ArticleModule(ICommonDao commonDao, IArticleDao articleDao)
 {
     this._commonDao = commonDao;
     this._articleDao = articleDao;
     this._currentArticleId = -1;
     this._currentCategoryId = -1;
     this._currentAction = ArticleModuleAction.List;
 }
Пример #8
0
 public newspublisher() : base()
 {
     this.userId     = base.UserId;
     this.articleDao = new ArticleDao();
     logger.Info("Construct method done.");
 }