public static ZoneRepository InstantiateForMemory(RequestContext c) { ZoneRepository result = null; result = new ZoneRepository(c, new MemoryStrategy <Data.EF.ecommrc_ShippingZones>(PrimaryKeyType.Long), new TextLogger()); return(result); }
public static ZoneRepository InstantiateForDatabase(RequestContext c) { ZoneRepository result = null; result = new ZoneRepository(c, new EntityFrameworkRepository <Data.EF.ecommrc_ShippingZones>(new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)), new SupressLogger()); return(result); }