Ejemplo n.º 1
0
        public static ContentBlockRepository InstantiateForMemory(RequestContext c)
        {
            ContentBlockRepository result = null;
            ILogger logger = new MerchantTribe.Commerce.EventLog();

            result = new ContentBlockRepository(c, new MemoryStrategy <Data.EF.bvc_ContentBlock>(PrimaryKeyType.Bvin), logger);
            return(result);
        }
Ejemplo n.º 2
0
        public static ContentBlockRepository InstantiateForDatabase(RequestContext c)
        {
            ContentBlockRepository result = null;
            ILogger logger = new MerchantTribe.Commerce.EventLog();

            result = new ContentBlockRepository(c, new EntityFrameworkRepository <Data.EF.bvc_ContentBlock>(
                                                    new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)), logger);
            return(result);
        }
 public ContentColumnRepository(RequestContext c, IRepositoryStrategy <Data.EF.bvc_ContentColumn> r,
                                IRepositoryStrategy <Data.EF.bvc_ContentBlock> subr,
                                ILogger log)
 {
     context              = c;
     repository           = r;
     this.logger          = log;
     repository.Logger    = this.logger;
     this.blockRepository = new ContentBlockRepository(c, subr, this.logger);
 }