public static HtmlTemplateRepository InstantiateForMemory(RequestContext c) { HtmlTemplateRepository result = null; result = new HtmlTemplateRepository(c, new MemoryStrategy <Data.EF.bvc_HtmlTemplates>(PrimaryKeyType.Long), new TextLogger()); return(result); }
public static ContentService InstantiateForDatabase(RequestContext c) { return(new ContentService(c, HtmlTemplateRepository.InstantiateForDatabase(c), PolicyRepository.InstantiateForDatabase(c), CustomUrlRepository.InstantiateForDatabase(c), ContentColumnRepository.InstantiateForDatabase(c) )); }
public static HtmlTemplateRepository InstantiateForDatabase(RequestContext c) { HtmlTemplateRepository result = null; result = new HtmlTemplateRepository(c, new EntityFrameworkRepository <Data.EF.bvc_HtmlTemplates>( new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)), new SupressLogger() ); return(result); }
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; }