Ejemplo n.º 1
0
        static Assignment GetFromAssembler(MyObjectAssemblerManager manager, ConfigurationContext config)
        {
            using (var cmd = new Assignment_Load_p())
            {
                cmd.Parameters.Assignment_id = 99;

                return manager.Create<Assignment>(config, cmd);
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var config = new ConfigurationContext("EFSchools.Englishtown.ELab.Admin.Services.*");
            var manager = new MyObjectAssemblerManager();

            //1. Assemble object
            //2. Assemble scalar
            //3. Assemble tuple
            //4. Performance

            //var watch = Stopwatch.StartNew();

            //for (int i = 0; i < 1000; i++)
            //{
            //    //GetFromAssembler(manager, config);
            //    //GetFromSO(config); // 2513
            //}

            //watch.Stop();
            //Console.WriteLine(watch.ElapsedMilliseconds);

            Console.ReadLine();
        }