Пример #1
0
        public static VendorManufacturerContactRepository InstantiateForMemory(RequestContext c)
        {
            VendorManufacturerContactRepository result = null;

            result = new VendorManufacturerContactRepository(c, new MemoryStrategy <Data.EF.bvc_UserXContact>(PrimaryKeyType.Long), new TextLogger());
            return(result);
        }
Пример #2
0
 public VendorRepository(RequestContext c, IRepositoryStrategy <Data.EF.bvc_Vendor> r,
                         IRepositoryStrategy <Data.EF.bvc_UserXContact> sub, ILogger log)
 {
     context           = c;
     repository        = r;
     this.logger       = log;
     contactRepository = new VendorManufacturerContactRepository(c, sub, this.logger);
     repository.Logger = this.logger;
 }
Пример #3
0
        public static VendorManufacturerContactRepository InstantiateForDatabase(RequestContext c)
        {
            VendorManufacturerContactRepository result = null;

            result = new VendorManufacturerContactRepository(c,
                                                             new EntityFrameworkRepository <Data.EF.bvc_UserXContact>(
                                                                 new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                                             new SupressLogger());
            return(result);
        }