Exemplo n.º 1
0
        protected override void Seed(WebApiPerformance.DAL.TestContext context)
        {
            var testViewModels = StaticHelper.CreateTestData(80000);

            context.TestViewModels.AddRange(testViewModels);
            context.SaveChanges();
            base.Seed(context);
        }
Exemplo n.º 2
0
        public List <TestViewModel> GetNoCacheGzip([FromUri] int records)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            Debug.WriteLine("Begin: Get()");

            var data = StaticHelper.CreateTestData(records);

            Debug.WriteLine("{0}{1}", "End: Get()", sw.ElapsedMilliseconds);
            sw.Stop();

            return(data);
        }