コード例 #1
0
        public static TaxScheduleRepository InstantiateForDatabase(RequestContext c)
        {
            TaxScheduleRepository result = null;

            result = new TaxScheduleRepository(c,
                                               new EntityFrameworkRepository <Data.EF.ecommrc_TaxSchedules>(new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                               new SupressLogger());
            return(result);
        }
コード例 #2
0
        public static TaxScheduleRepository InstantiateForMemory(RequestContext c)
        {
            TaxScheduleRepository result = null;

            result = new TaxScheduleRepository(c,
                                               new MemoryStrategy <Data.EF.ecommrc_TaxSchedules>(PrimaryKeyType.Long),
                                               new TextLogger());
            return(result);
        }