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