Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }