コード例 #1
0
ファイル: ContentRepository.cs プロジェクト: yushuo1990/cms
 public ContentRepository(
     ICategoryRepo catRepo,
     ITemplateRepo tempRep)
 {
     this._catRepo = catRepo;
     this._tempRep = tempRep;
     siteContents  = new Dictionary <int, IContentContainer>();
 }
コード例 #2
0
 public IContentContainer CreateSiteContent(
     ICategoryRepo catRepo,
     IArchiveRepository archiveRep,
     ITemplateRepo tempRep,
     int siteId)
 {
     return(new ContentContainer(catRepo, archiveRep, tempRep, siteId));
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="categoryRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="categoryId"></param>
 /// <param name="site"></param>
 /// <returns></returns>
 public ICategory CreateCategory(
     ICategoryRepo categoryRep,
     ISiteRepo siteRepo,
     IExtendFieldRepository extendRep,
     ITemplateRepo tempRep,
     CmsCategoryEntity value)
 {
     return(new Category(categoryRep, siteRepo, extendRep, tempRep, value));
 }
コード例 #4
0
 internal Category(ICategoryRepo rep, ISiteRepo siteRepo,
     IExtendFieldRepository extendRep, ITemplateRepo tmpRep, 
     CmsCategoryEntity value)
 {
     this.value = value;
     this._repo = rep;
     this._extendRep = extendRep;
     this._tempRep = tmpRep;
     this.siteRepo = siteRepo;
 }
コード例 #5
0
 public BaseContent(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep)
 {
     this._contentRep  = contentRep;
     this._extendRep   = extendRep;
     this._categoryRep = categoryRep;
     this._templateRep = templateRep;
 }
コード例 #6
0
 internal ContentContainer(
     ICategoryRepo catRepo,
     IArchiveRepository archiveRep,
     ITemplateRepo tempRep,
     int siteId)
 {
     _catRepo    = catRepo;
     _archiveRep = archiveRep;
     _tempRep    = tempRep;
     SiteId      = siteId;
 }
コード例 #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep,
     CmsArchiveEntity value)
 {
     return(new Archive(contentRep, archiveRep, extendRep,
                        categoryRep, templateRep, value));
 }
コード例 #8
0
ファイル: SiteRepository.cs プロジェクト: wangjiec1/cms
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepo categoryRepository,
     ITemplateRepo tempRep,
     IUserRepository userRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep           = categoryRepository;
     this._tempRep = tempRep;
     this._userRep = userRep;
 }
コード例 #9
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepo templateRep,
     ICategoryRepo categoryRep
     )
 {
     _contentRep  = contentRep;
     _extendRep   = extendRep;
     _templateRep = templateRep;
     _categoryRep = categoryRep;
 }
コード例 #10
0
        public CategoryRepository(
            //ISiteRepository siteRep,
            ITemplateRepo tempRep,
            IExtendFieldRepository extendRep)
        {
            //
            //NOTE:会循环依赖
            //
            this._extendRep = extendRep;
            this._tempRep   = tempRep;
            //this._siteRep = ObjectFactory.GetInstance<ISiteRepository>();

            // GetCategoryDictionary();
        }
コード例 #11
0
 internal Site(ISiteRepo siteRepository,
               IExtendFieldRepository extendRepository,
               ICategoryRepo categoryRep,
               ITemplateRepo tempRep,
               IUserRepository userRep,
               CmsSiteEntity site)
 {
     this.value             = site;
     this._siteRepository   = siteRepository;
     this._categoryRep      = categoryRep;
     this._extendRepository = extendRepository;
     this._tempRep          = tempRep;
     this._userRep          = userRep;
 }
コード例 #12
0
 public SiteService(ISiteRepo resp,
                    ICategoryRepo categoryRep,
                    IArchiveRepository archiveRep,
                    IExtendFieldRepository extendFieldPository,
                    IContentRepository contentRep,
                    ITemplateRepo tempRep)
 {
     this.repo         = resp;
     this._extendRep   = extendFieldPository;
     this._categoryRep = categoryRep;
     this._archiveRep  = archiveRep;
     this._contentRep  = contentRep;
     this._tempRep     = tempRep;
 }
コード例 #13
0
ファイル: BaseSiteRepository.cs プロジェクト: wangjiec1/cms
 /// <summary>
 ///
 /// </summary>
 /// <param name="resp"></param>
 /// <param name="extendRepository"></param>
 /// <param name="categoryRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="siteId"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public ISite CreateSite(
     ISiteRepo resp,
     IExtendFieldRepository extendRepository,
     ICategoryRepo categoryRep,
     ITemplateRepo tempRep,
     IUserRepository userRep,
     CmsSiteEntity site
     )
 {
     return(new Site(resp,
                     extendRepository,
                     categoryRep,
                     tempRep,
                     userRep,
                     site));
 }
コード例 #14
0
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep,
     CmsArchiveEntity value)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep
         )
 {
     this._value       = value;
     this._archiveRep  = archiveRep;
     this._templateRep = templateRep;
     this._catRepo     = categoryRep;
 }
コード例 #15
0
 public TemplateController(ITemplateRepo ITemplateRepo)
 {
     _ITemplateRepo = ITemplateRepo;
 }
コード例 #16
0
ファイル: MessageFactory.cs プロジェクト: quakkels/flashmercy
 public MessageFactory(ITemplateRepo templateRepo)
 {
     this.templateRepo = templateRepo;
 }
コード例 #17
0
 public TemplatesController(ScreenContext context, IMapper mapper, ITemplateRepo templateRepo)
 {
     _context      = context;
     _mapper       = mapper;
     _templateRepo = templateRepo;
 }