Esempio n. 1
0
 public static ContentService InstantiateForDatabase(RequestContext c)
 {
     return(new ContentService(c,
                               HtmlTemplateRepository.InstantiateForDatabase(c),
                               PolicyRepository.InstantiateForDatabase(c),
                               CustomUrlRepository.InstantiateForDatabase(c),
                               ContentColumnRepository.InstantiateForDatabase(c)
                               ));
 }
        public static CustomUrlRepository InstantiateForDatabase(RequestContext c)
        {
            CustomUrlRepository result = null;

            result = new CustomUrlRepository(c,
                                             new EntityFrameworkRepository <Data.EF.bvc_CustomUrl>(
                                                 new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                             new EventLog()
                                             );
            return(result);
        }
Esempio n. 3
0
 public ContentService(RequestContext c,
                       HtmlTemplateRepository templates,
                       PolicyRepository policies,
                       CustomUrlRepository customUrls,
                       ContentColumnRepository cols)
 {
     context         = c;
     HtmlTemplates   = templates;
     this.Policies   = policies;
     this.CustomUrls = customUrls;
     this.Columns    = cols;
 }