public ProductFileRepository(RequestContext c, IRepositoryStrategy <Data.EF.bvc_ProductFile> r,
                              IRepositoryStrategy <Data.EF.bvc_ProductFileXProduct> x, ILogger log)
 {
     context           = c;
     repository        = r;
     this.logger       = log;
     this.crosses      = new ProductFileAssociationRepository(c, x, this.logger);
     repository.Logger = this.logger;
 }
Exemple #2
0
        public static ProductFileAssociationRepository InstantiateForDatabase(RequestContext c)
        {
            ProductFileAssociationRepository result = null;

            result = new ProductFileAssociationRepository(c,
                                                          new EntityFrameworkRepository <Data.EF.bvc_ProductFileXProduct>(
                                                              new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                                          new EventLog());
            return(result);
        }