示例#1
0
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     ILinkRepository linkRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     int id,
     string strId,
     int categoryId,
     string title)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep,
         linkRep,
         id,
         categoryId,
         title
         )
 {
     this.StrId        = strId;
     this._archiveRep  = archiveRep;
     this._templateRep = templateRep;
 }
示例#2
0
文件: Archive.cs 项目: coodream/cms
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     ILinkRepository linkRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     int id,
     string strId,
     int categoryId,
     string title)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep,
         linkRep,
         id,
         categoryId,
         title
         )
 {
     this.StrId = strId;
     this._archiveRep = archiveRep;
     this._templateRep = templateRep;
 }
示例#3
0
文件: Category.cs 项目: coodream/cms
 internal Category(ICategoryRepository rep,IExtendFieldRepository extendRep,ITemplateRepository tmpRep, int id,ISite site)
 {
     this.Site = site;
     this._rep = rep;
     this.Id = id;
     this._extendRep = extendRep;
     this._tempRep = tmpRep;
 }
示例#4
0
 internal Category(ICategoryRepository rep, IExtendFieldRepository extendRep, ITemplateRepository tmpRep, int id, ISite site)
 {
     this.Site       = site;
     this._rep       = rep;
     this.Id         = id;
     this._extendRep = extendRep;
     this._tempRep   = tmpRep;
 }
示例#5
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(
     ICategoryRepository categoryRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository tempRep,
     int categoryId,
     ISite site)
 {
     return new Category(categoryRep, extendRep, tempRep,categoryId, site);
 }
示例#6
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));
 }
示例#7
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(
     ICategoryRepository categoryRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository tempRep,
     int categoryId,
     ISite site)
 {
     return(new Category(categoryRep, extendRep, tempRep, categoryId, site));
 }
示例#8
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepository siteRep,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep = siteRep;
     this._extendRep = extendRep;
 }
示例#9
0
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepository categoryRepository,
     ITemplateRepository tempRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep           = categoryRepository;
     this._tempRep = tempRep;
 }
示例#10
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepository siteRep,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep    = siteRep;
     this._extendRep  = extendRep;
 }
示例#11
0
 public ArchiveService(
     IContentRepository contentRep,
     ICategoryRepo catRepo,
     IExtendFieldRepository extendRep
     )
 {
     _contentRep = contentRep;
     _extendRep  = extendRep;
     _catRepo    = catRepo;
 }
示例#12
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;
 }
示例#13
0
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepository categoryRepository,
     ITemplateRepository tempRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep = categoryRepository;
     this._tempRep = tempRep;
 }
示例#14
0
 public SiteService(ISiteRepository resp,
     ICategoryRepository categoryRep,
     IExtendFieldRepository extendFieldPository,
     ITemplateRepository tempRep)
 {
     this._resp = resp;
     this._extendResp = extendFieldPository;
     this._categoryRep = categoryRep;
     this._tempRep = tempRep;
 }
示例#15
0
 public SiteService(ISiteRepository resp,
                    ICategoryRepository categoryRep,
                    IExtendFieldRepository extendFieldPository,
                    ITemplateRepository tempRep)
 {
     this._resp        = resp;
     this._extendResp  = extendFieldPository;
     this._categoryRep = categoryRep;
     this._tempRep     = tempRep;
 }
示例#16
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));
 }
示例#17
0
 public BaseContent(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep)
 {
     this._contentRep  = contentRep;
     this._extendRep   = extendRep;
     this._categoryRep = categoryRep;
     this._templateRep = templateRep;
 }
示例#18
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepo siteRep,
     ICategoryRepo catRepo,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep    = siteRep;
     this._extendRep  = extendRep;
     this._catRepo    = catRepo;
 }
示例#19
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository templateRep,
     ICategoryRepository categoryRep
     )
 {
     this._contentRep  = contentRep;
     this._extendRep   = extendRep;
     this._templateRep = templateRep;
     this._categoryRep = categoryRep;
 }
示例#20
0
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepo categoryRepository,
     ITemplateRepo tempRep,
     IUserRepository userRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep           = categoryRepository;
     this._tempRep = tempRep;
     this._userRep = userRep;
 }
示例#21
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepo templateRep,
     ICategoryRepo categoryRep
     )
 {
     _contentRep  = contentRep;
     _extendRep   = extendRep;
     _templateRep = templateRep;
     _categoryRep = categoryRep;
 }
示例#22
0
        public CategoryRepository(
            //ISiteRepository siteRep,
            ITemplateRepo tempRep,
            IExtendFieldRepository extendRep)
        {
            //
            //NOTE:会循环依赖
            //
            this._extendRep = extendRep;
            this._tempRep   = tempRep;
            //this._siteRep = ObjectFactory.GetInstance<ISiteRepository>();

            // GetCategoryDictionary();
        }
示例#23
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository templateRep,
     ICategoryRepository categoryRep,
     ILinkRepository linkRep
     )
 {
     this._contentRep = contentRep;
     this._extendRep = extendRep;
     this._templateRep = templateRep;
     this._categoryRep = categoryRep;
     this._linkRep = linkRep;
 }
示例#24
0
        public CategoryRepository(
            //ISiteRepository siteRep, 
            ITemplateRepository tempRep,
            IExtendFieldRepository extendRep)
        {
            //
            //NOTE:会循环依赖
            //
            this._extendRep = extendRep;
            this._tempRep = tempRep;
            //this._siteRep = ObjectFactory.GetInstance<ISiteRepository>();

            // GetCategoryDictionary();
        }
示例#25
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,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     ILinkRepository linkRep,
     int id,
     string strId,
     int categoryId,
     string title)
 {
     return new Archive(contentRep, archiveRep, linkRep, extendRep, categoryRep, templateRep, id, strId, categoryId, title);
 }
示例#26
0
 internal Site(ISiteRepository siteRepository,
               IExtendFieldRepository extendRepository,
               ICategoryRepository categoryRep,
               ITemplateRepository tempRep,
               int siteId,
               string name)
 {
     this.Id                = siteId;
     this.Name              = name;
     this._siteRepository   = siteRepository;
     this._categoryRep      = categoryRep;
     this._extendRepository = extendRepository;
     this._tempRep          = tempRep;
 }
示例#27
0
文件: Site.cs 项目: hanson-huang/cms
 internal Site(ISiteRepository siteRepository,
     IExtendFieldRepository extendRepository,
     ICategoryRepository categoryRep,
     ITemplateRepository tempRep,
     int siteId,
     string name)
 {
     this.Id = siteId;
     this.Name = name;
     this._siteRepository = siteRepository;
     this._categoryRep = categoryRep;
     this._extendRepository = extendRepository;
     this._tempRep = tempRep;
 }
 /// <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,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     ILinkRepository linkRep,
     int id,
     string strId,
     int categoryId,
     string title)
 {
     return(new Archive(contentRep, archiveRep, linkRep, extendRep, categoryRep, templateRep, id, strId, categoryId, title));
 }
示例#29
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;
 }
示例#30
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;
 }
示例#31
0
 /// <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(
     ISiteRepository resp,
     IExtendFieldRepository extendRepository,
     ICategoryRepository categoryRep,
     ITemplateRepository tempRep,
     int siteid,
     string name
     )
 {
     return new Site(resp,
         extendRepository,
         categoryRep,
         tempRep,
         siteid,
         name);
 }
示例#32
0
 /// <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));
 }
示例#33
0
 /// <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(
     ISiteRepository resp,
     IExtendFieldRepository extendRepository,
     ICategoryRepository categoryRep,
     ITemplateRepository tempRep,
     int siteid,
     string name
     )
 {
     return(new Site(resp,
                     extendRepository,
                     categoryRep,
                     tempRep,
                     siteid,
                     name));
 }
示例#34
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;
 }
示例#35
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep  = contentRep;
            this._extendRep   = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.Id          = id;
            this.Title       = title;
            this._categoryId = categoryId;
            this.Id          = id;
        }
示例#36
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            ILinkRepository linkRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep  = contentRep;
            this._linkRep     = linkRep;
            this._extendRep   = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.Id        = id;
            this._category = this._categoryRep.CreateCategory(categoryId, null);
            this.Title     = title;
            this.Id        = id;
        }
示例#37
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            ILinkRepository linkRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep = contentRep;
            this._linkRep = linkRep;
            this._extendRep = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.ID = id;
            this._category = this._categoryRep.CreateCategory(categoryId, null);
            this.Title = title;
            this.ID = id;
        }
示例#38
0
 public ExtendManager(IExtendFieldRepository resp, int siteId)
 {
     this.SiteId = siteId;
     this._resp = resp;
 }
示例#39
0
 public ExtendManager(IExtendFieldRepository resp, int siteId)
 {
     this.SiteId = siteId;
     this._rep   = resp;
 }